Checking for valid filename 
Author Message
 Checking for valid filename

I need to check if a string would be a valid 16-bit/win3.1 filename.
I thought there might even be an api call for this, but I didn't see
one.  Can anyone think of a way besides looping through checking for
funny chars?



Sat, 28 Nov 1998 03:00:00 GMT  
 Checking for valid filename


Quote:
>I need to check if a string would be a valid 16-bit/win3.1 filename.

Open filename For Append
Close

If Err = 0 Then
        If FileLen(Filename) = 0 Then Kill Filename
Else
        ' Not valid
End If


--
VB 3.0 and Win3.1x assumed

http://www.sn.no/~balchen/
ftp://ftp.sn.no/user/balchen/



Sat, 28 Nov 1998 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. check string as valid filename

2. DOS wildcard, *, not valid with .FileName?

3. valid filenames for shell functions?

4. Valid Filenames?

5. Detecting if a filename is a valid picture file

6. Converting an invalid filename to a valid one

7. API to test for valid filename?

8. Valid FileName

9. Method for checking for valid dates in a query

10. Check if a date field is valid

11. Check for valid file or directory

12. Checking if string contains valid GUID

 

 
Powered by phpBB® Forum Software