Thank you for all your hints.  It has helped me to help myself.  Thanks
again.  By the way, that's the best way to learn.


At 01:12 PM 10/3/00 -0400, you wrote:
>> I am using "setPref" and "getPref" and I would like to check 
>> if a text file is present in my system.  Specifically in your
>> OS drive (system folder).
>
>1) getOSDirectory() doesn't return a path that ends with a path separator on
>Windows, but it does on Mac.  You would need to add a "\" to create that
>file there.  Otherwise, you're creating something like "C:\WINNTgehfs.txt".
>
>2) this really isn't the proper use for getPref().  Yes, it returns void if
>it doesn't find the file, but Director wants to supply the path for getPref
>and setPref.  It's supposed to be used in conjunction with a PREFS folder at
>the application level.  This info is easily accessible in Director's help
>file, by the way.
>
>3) if you want to check for the existence of a file in a particular place,
>use FileXtra's FileExists() or BudAPI's baFileExists().  OSXtra probably has
>a similar function.
>
>HTH
>Rob
>
>/*********************************
>* Rob Wingate, Software Human    *
>* http://www.vingage.com         *
>* mailto:[EMAIL PROTECTED] *
>*********************************/
>
>[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!]
>
>
>


Conrad Ayala
Interface Architect
The Spin Group, Inc.
http://www.spingroup.com/
Phone 1-414-672-8888  Fax 1-414-672-8183


[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