JUAN-NYC...
The way you have your script now, you aren't actually checking to see if
any files exist. You needed to add gMyArtist to the end of this line
gMyFile = fxObj.fx_FileExists("C:\" & gMyArtist)
You also have to make sure that the filename entered into your ArtistField
contains a file extension. If you are sure that there will only be 1 file
type then you can just append the extension yourself like so
gMyFile = fxObj.fx_FileExists("C:\" & gMyArtist & ".doc")
If there are multiple file types but your are sure that there is only 1
file with that name you can append the wildcard extension like so
gMyFile = fxObj.fx_FileExists("C:\" & gMyArtist & ".*")
There is a version of your script with the changes from above, (no
extension stuff) below. Hopefully that gets you going again.
Later.
...Neil
on mouseUp
global gMyArtist, gMyFile
fxObj = xtra("FileXtra3").new()
gMyArtist = member("Artistfield").text
gMyFile = fxObj.fx_FileExists("C:\" & gMyArtist) --> Changed this line
-- put member("gMyFile").line[1].char[24] = "ArtistField"
if gMyFile then
alert "File Exists"
-- put gMyArtist into field "FileLocator"
else
alert "Sorry No File Here"
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!]