Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Technique to validate a file name
Message
De
20/03/1998 12:38:37
 
 
À
20/03/1998 12:18:20
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00086002
Message ID:
00086047
Vues:
23
>Hi Michel,
>
>mFilename = "c:\data\client1\reports folder is here\monthly.txt"
>if file(mFilename)
> return .t.
>endif
>handle = fcreate(mFilename)
>if handle < 0
> return .f.
>endif
>=fclose(handle)
>erase (mfilename)
>
Thanks, this is about what I did. However, we also have a function to check if a file exist. So, when we will call this function, it will be only to see if the file is valid so we can use this fully qualified file name later on for creation.
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
Répondre
Fil
Voir

Click here to load this message in the networking platform