seems to be a missing "\" in:
"C:\My Documents" & gMyFile & ".TXT"
try
"C:\My Documents\" & gMyFile & ".TXT"

Christian

----------------------------
Christian Wach
[EMAIL PROTECTED]
----------------------------


JUAN COLON wrote:

> someone helped me out with this script and modified it for me. i thank that
> person for the help but im still having problems searching for a file using
> the FileXtra3. You type the name of a file into a field and then if the file
> is found then it should alert you that the file is there or if is not. Then
> Any help would be greatly appreciated.
> 
> 
> 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


[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!]

Reply via email to