> on mouseUp
>
> global gMyFile, gFileSearch
> fxObj = xtra("FileXtra3").new()
> gMyFile = member("Filefield").text
> gFileSearch = fxObj.fx_FileExists("C:\My Documents" &
> gMyFile & ".TXT")
> if gFileSearch = true then
> alert "File Exists"
> put gMyFile into field "FileLocator"
> else
> alert "No File Found"
> end if
>
> end mouseUp
Well, for one thing, the path should be:
gFileSearch = fxObj.fx_FileExists("C:\My Documents\" & gMyFile & ".TXT")
Another thing to watch out for is to make sure that "My Documents" is really
on the user's C drive - on my machine here, for example, it's on "D"
Karina
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]