Problem for open a standalone from a CdRom
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: Problem for open a standalone from a CdRom
Hi Jean-Marc,
In the entire script that you posted, there is no single read or put url command. Perhaps you should post that part of the script.
Kind regards,
Mark
In the entire script that you posted, there is no single read or put url command. Perhaps you should post that part of the script.
Kind regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: Problem for open a standalone from a CdRom
Hi Mark,
There is the old script when an error coming
Best
Jean-Marc
There is the old script when an error coming
Code: Select all
on ImpPref
global gPathNec
put gPathNec&"/"&MesPrefs into LeFi
put ReadUnFi(LeFi) into bufPref
set the monmodenav of this stack to(line 1 of bufPref)
set the defdelai of this stack to(line 2 of bufPref)
set the MonParleurTexte of this stack to(line 3 of bufPref)
set the MonParleurInfos of this stack to(line 4 of bufPref)
end ImpPref
function ReadUnFi pF --•• read a file, pF = filename
put pF into PathFi
put empty into rReadUnFi
open file PathFi
read from file PathFi until eof
put it into rReadUnFi
close file PathFi
return rReadUnFi
end ReadUnFi
Jean-Marc
https://alternatic.ch
Re: Problem for open a standalone from a CdRom
Jean-Marc,
This doesn't work:
and should be changed into
Mind the space. All following lines containing similar syntax need to be changed, too.
It would also be useful to change the first part of the script into:
Kind regards,
Mark
This doesn't work:
Code: Select all
to(line 1 of bufPref)
Code: Select all
to (line 1 of bufPref)
It would also be useful to change the first part of the script into:
Code: Select all
global gPathNec
put gPathNec&"/"&MesPrefs into LeFi
if there is a file LeFi then
put ReadUnFi(LeFi) into bufPref
else
beep
answer error "Can't find file" && LeFi
end if
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: Problem for open a standalone from a CdRom
Bonsoir Jean-Marc,
additionally to Marks suggestions you should also change this in your function:
Or use the URL syntax, which is also much shorter
Best
Klaus
additionally to Marks suggestions you should also change this in your function:
Code: Select all
function ReadUnFi pF --•• read a file, pF = filename
put pF into PathFi
put empty into rReadUnFi
## !!!
open file PathFi FOR READ
## !!
read from file PathFi until eof
put it into rReadUnFi
close file PathFi
return rReadUnFi
end ReadUnFi

Code: Select all
function ReadUnFi pF --•• read a file, pF = filename
return URL("file:" & pF)
end ReadUnFi
Klaus
Re: Problem for open a standalone from a CdRom
Hi Mark and Klaus
Thank again for your suggestions and i'll change my scripts.
I believe that the problem is somewhere else. But i repeat, the problem is solved with a file on the HD instead the CD-Rom.
I give some news later.
Kinds regards
Jean-Marc
P.S I posted yesterday the same text as FrankyH. It is possible ?
Thank again for your suggestions and i'll change my scripts.
I believe that the problem is somewhere else. But i repeat, the problem is solved with a file on the HD instead the CD-Rom.
I give some news later.
Kinds regards
Jean-Marc
P.S I posted yesterday the same text as FrankyH. It is possible ?
https://alternatic.ch
Re: Problem for open a standalone from a CdRom
FrankyH simply copied some text already on the forum and used it to make a post that planted Spam in his signature.
Re: Problem for open a standalone from a CdRom
Yes, I replied to the question about FrankyH already, but I think a moderator took out my answer 
Mark

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: Problem for open a standalone from a CdRom
Hi Mark,
I only removed the Spammers posting!
Best
Klaus
I only removed the Spammers posting!
Best
Klaus