Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Technique to validate a file name
Message
From
20/03/1998 12:38:37
 
 
To
20/03/1998 12:18:20
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00086002
Message ID:
00086047
Views:
24
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform