Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Validating a path/filename
Message
From
24/12/2012 13:38:43
 
 
To
24/12/2012 09:56:58
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01560549
Message ID:
01560562
Views:
55
>I would like to have a function to validate filenames.


Try: http://msdn.microsoft.com/en-us/library/bb776472%28v=VS.85%29.aspx

It uses a windows shell function to validate the pathname for the destination (such as enforcing 8.3 file format on drives that only support 8.3).

It only supports wide character format, so you'll have to convert the text first.

Use STRCONV() 1 and 5 to encode, then 6 and 2 to decode (see http://msdn.microsoft.com/en-us/library/k0yb2181%28v=vs.80%29.aspx).

Use DECLARE DLL function to declare the function. And use @ at signs on your strings.

HTH!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform