Have you tried calling the status(fileIObj) or error(status(fileIObj)) of
the fileio object this may give you some useful information
prefpath also seems to be undeclared as global or property.

HTH
Brad


> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of jmk
> Sent: Tuesday, 21 January 2003 1:06 PM
> To: [EMAIL PROTECTED]
> Subject: <lingo-l> (no subject)
>
>
> hi, i have a script which should test if ther is an .ini file called
> "appxyqt6.ini"
>
> but i allways get error messages when creating a CLASSIC Projector
> with Director MX.
>
> on a PC it works fine (director 7.02)
>
> it seames that the mistake is in the "checkinstalled" handler...
>
> PLEASE HELP!!!
>
> thanks
> jmk
>
>
>
>
>
> global preffile, filler, QTinstallPath
>
>
> on startmovie -- QTinstallPath muss angepasst werden
>    add (the searchpaths, the moviePath & "director")
>    if the platform contains "win" then
>      QTinstallPath = "Install_Quicktime_6_win\"&"QuickTimeInstaller.exe"
>    else
>      QTinstallPath = "install_Quicktime_6_mac:"&"QuickTimeInstaller"
>    end if
>    preffile = "appxyqt6.ini"
>    If (checkinstalled(preffile)=true) then
>      playMovie
>    else
>      go to "installer_screen"
>    end if
> end
>
>
> on checkinstalled thePrefFile
>    set prefpath = getOSdirectory()&thePrefFile
>    -- Überprüfung Prefs
>    myFileObj = new(xtra "fileIO")
>    openFile(myFileObj, prefpath, 0)
>    createFile(myFileObj, prefpath, 0)
>    if readFile (myFileObj) <> VOID then
>      -- ini Datei existiert
>      set temp=true
>    else
>      set temp = false
>    end if
>
>    --Aufräumen
>
>    closeFile(myFileObj)
>    myFileObj = 0
>    -- Ereignis zurückmelden
>    return temp
> end
> --
> -------------------------------------------------------------------------
> jmk-media-solutions
> Spitzäckerstr. 5
> 76359 Marxzell
> Germany
>
> tel. +49-(0)7248-1363
> fax. +49-(0)7248-4417
>
> [EMAIL PROTECTED]
>
> http://www.jmk-media-solutions.de
>
> -------------------------------------------------------------------------
> [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!]
>
>


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

Reply via email to