Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating a unique filename
Message
De
02/01/2004 10:52:18
 
 
À
02/01/2004 09:49:14
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00863432
Message ID:
00863450
Vues:
13
This message has been marked as the solution to the initial question of the thread.
>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
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform