Uh, yeah. That's not how the @ operator is meant to be used. :\
What do you want to do?
I want to store the path to the directory above the moviePath in a variable.
Ah. You need to parse it then. You can't us @// in that way.
Sebasti�n posted a method; here's another (which might be exactly like his, actually):
on GetPath sDelimSave = the itemDelimiter the itemDelimiter = the last char of the moviePath sPathUp = the moviePath delete the last item of sPathUp delete the last item of sPathUp put the itemDelimiter after sPathUp the itemDelimiter = sDelimSave return sPathUp end
put the moviepath -- "nightbook_iii:Users:warren:Desktop:"
put GetPath() -- "nightbook_iii:Users:warren:"
I have a directory structure something like this MyProgram MyCode start.dir UserData users.xml
I simply want to open the users.xml file.
That's easy.
"@//UserData/users.xml"
Does that do what you need it to? Or do you need to confirm that the UserData folder exists? Or that the XML file does? If the latter, it seems BAPI lets you. If the former, you might be able to do a getNthFileNameInFolder test for @// and see if the folder you want is present.
Warren Ockrassa | President, nightwares LLC [EMAIL PROTECTED] nightwares LLC | Consulting Programming http://www.nightwares.com/ Author | Director 8.5 Shockwave Studio: A Beginner's Guide Chapter samples | http://www.nightwares.com/director_beginners_guide/
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/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!]
