Home » questions » VBscript (ASP) Function Problem?
VBscript (ASP) Function Problem?
I got my school quiz back and the following problem was stated:
Write a function named ValidateFiles() which accepts a string, returns 1 if the string is empty, returns 2 if the string doesn't contain "." , otherwise it returns the file extension.
Example: If you pass myFile.txt the function returns txt.
How do I go about doing this?
Thanks,
Chris
**NOTE** I don't want Visual Basic Coding, I need ASP coding, with vbscripting. The msg box is not part of this scripting language.

Answers
Martyr2
On 2006-08-14 14:48:46
trainump
On 2006-08-14 12:43:19