Also, the applicationPath will return the path to Director during
authoring. During runtime it will return the path to the projector. I
suspect that bhen.txt file is in the Director application folder, but
doesn't exist in the projector folder.
At 21:15 10/07/2001, Tab Julius wrote:
>It certainly does work at runtime. My two questions therefore would be:
>
>1) Instead of doing importFileInto member("/Prefs/bhen"), the
>applicationPath & "/" & "Prefs"&"/"&"bhen.txt"
>that you instead do:
> importFilename =the applicationPath & "/" & "Prefs" & "/" & "bhen.txt"
> importMember =member("/Prefs/bhen")
> alert "Importing "&importFilename&" into member "&importMember
> importFileInto(importMember, importFilename)
>
> and see just exactly what it thinks it is importing into where.
>
>2) Is xxx "/" xxx valid? Usually it's a backslash ("\") not a forward
>slash as you have it.
>
>3) Does the import member exist?
>
>- Tab
>
>
>At 10:10 PM 7/10/01 -0700, John Hart wrote:
>>As usual, ImportFileInto works great in author mode (D8), but not from my
>>projector at runtime. Here's the meaningful end of the code I'm using:
>>
>>importFileInto member ("/Prefs/bhen"), the applicationPath
>>&"/"&"Prefs"&"/"&"bhen.txt"
--
Mark A. Boyd
Keep-On-Learnin' :)
[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!]