Click to See Complete Forum and Search --> : File Name Again
QWERTY
Nov 8th, 1999, 04:07 AM
How can I determine if some text is a valid file name without a bunch of if's or select case statements? (ex. *.txt invalid, qwerty.txt valid)
------------------
Visual Basic Programmer (at least I want to be one)
------------------
PolComSoft
You will hear a lot about it.
MartinLiss
Nov 8th, 1999, 04:49 AM
Why worry about it? If you are concerned with not being able to find the file, why not have an error message that says something like "File name not found or file name not valid".
------------------
Marty
QWERTY
Nov 8th, 1999, 04:51 AM
Ok, I'm trying to SAVE that file not find it and I don't want to have error message in VB that this file name is invalid that's why I want to check it first
------------------
Visual Basic Programmer (at least I want to be one)
------------------
PolComSoft
You will hear a lot about it.
Compwiz
Nov 8th, 1999, 05:11 AM
Use MS Common Dialog!!!
------------------
Tom Young, 14 Year Old
tyoung@stny.rr.com
ICQ: 15743470
AIM: TomY10
PERL, JavaScript and VB Programmer
QWERTY
Nov 8th, 1999, 07:50 AM
I don't want to. I would need to add some things to Comm. Dial. I have to do my own thing.
------------------
Visual Basic Programmer (at least I want to be one)
------------------
PolComSoft
You will hear a lot about it.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.