Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > it.comp.lang.visual-basic > #18531

Re: funzione Dir

Newsgroups it.comp.lang.visual-basic
Date 2015-10-07 13:21 -0700
References <mv3mui$grg$1@solani.org>
Message-ID <1ab2b681-a332-43bd-b366-74996a8c0cab@googlegroups.com> (permalink)
Subject Re: funzione Dir
From Luca D <antaniserse@yahoo.it>

Show all headers | View raw


On Wednesday, October 7, 2015 at 8:06:12 PM UTC+2, Greg wrote:
> Mi sono accorto oggi che la riga:
> x= Dir("G:\miofile.txt")
> mi restituisce Vuoto anzichè "" quando il drive non è presente. A cosa potrebbe > essere dovuto? 

Al fatto che Dir restituisce un Variant, per cui "vuoto" o "" dipende da come hai dichiarato la variabile di ritorno.

Come già detto nell'altra risposta, Dir$ restituiesce esplicitamente String, e quindi non hai ambiguità

Back to it.comp.lang.visual-basic | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

funzione Dir Greg <greg@alicie.com> - 2015-10-07 20:05 +0200
  Re: funzione Dir "Freccia (VegetaSSj)" <NIENTESPAMfreccia_vegetassj@hotmail.invalid> - 2015-10-07 22:14 +0200
  Re: funzione Dir Luca D <antaniserse@yahoo.it> - 2015-10-07 13:21 -0700
  Re: funzione Dir "salclem2" <salclem2@yahoo.it> - 2015-10-07 23:27 +0200
  Re: funzione Dir SB <stNOOObenevSPAM@tin.it> - 2015-10-08 10:56 +0200
    Re: funzione Dir Greg <greg@alicie.com> - 2015-10-08 21:29 +0200
      Re: funzione Dir "salclem2" <salclem2@yahoo.it> - 2015-10-08 23:23 +0200
        Re: funzione Dir "salclem2" <salclem2@yahoo.it> - 2015-10-08 23:26 +0200
          Re: funzione Dir Greg <greg@alicie.com> - 2015-10-08 23:48 +0200
    Re: funzione Dir Greg <greg@alicie.com> - 2015-10-09 16:19 +0200
      Re: funzione Dir SB <stNOOObenevSPAM@tin.it> - 2015-10-09 16:38 +0200
        Re: funzione Dir Greg <greg@alicie.com> - 2015-10-11 00:10 +0200
  Re: funzione Dir Greg <greg@alicie.com> - 2015-10-08 13:05 +0200

csiph-web