Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating a unique filename
Message
De
02/01/2004 13:18:35
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
 
 
À
02/01/2004 10:52:18
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00863432
Message ID:
00863488
Vues:
9
Thanks, that works great!

Jerry


>>Is there a function that will return a unique name? I am looking for something like VFP's SYS(2015) function. I want to generate a unique/random name so I can use it for creating a temporary file used to capture some output.
>
>Try this:
>
>
>   ' Return a random file name
>   Public Shared Function GenerateFileName() As String
>      Dim lcGuid As String
>      lcGuid = Guid.NewGuid.ToString()
>      Return lcGuid
>   End Function
>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform