Page 1 of 1
works in livecode but not when compiled
Posted: Thu Jul 25, 2019 5:27 pm
by DavJans
This is a tiny little printing application, I wanted to make it easier to print drawings instead of having to navigate folders. It works great while testing in livecode, but after I compile it, it wont work. Anyone have any ideas?
Re: works in livecode but not when compiled
Posted: Thu Jul 25, 2019 5:34 pm
by dunbarx
Hi.
On a Mac so cannot open the .rar file,
But do you mean "make a standalone" when you say "compile"?
Craig
Re: works in livecode but not when compiled
Posted: Thu Jul 25, 2019 5:54 pm
by DavJans
Yes, i mean make stand alone, attached is a zip.
here is most of the code:
Code: Select all
global t85x11
on mouseUp
put fld "pcmk" into dpcmk
put fld "jobn" into djob
put the folders into joblist
repeat for each line tLine in joblist
if tLine contains djob then
get shell(quote & "C:\Program Files (x86)\Adobe\Acrobat Reader DC\Reader\\AcroRd32.exe" & quote & " /n /s /h /t " & "\\10.0.15.15\Shop Drawings\Jobs\" & tLine & "\Drawings\Fabrication\" & dpcmk & ".pdf " & quote & t85x11 & quote)
end if
end repeat
if the hilite of btn "Lock Job" then
focus on fld "pcmk"
else
put empty into fld "jobn"
focus on fld "jobn"
end if
if the hilite of btn "Lock PcMk" then
else
put empty into fld "pcmk"
end if
end mouseUp
Re: works in livecode but not when compiled
Posted: Thu Jul 25, 2019 6:18 pm
by DavJans
Fixed it, sorry, I had deleted this line by accident. Livecode still remembered it but the stand alone wouldn't.
set the defaultfolder to "\\10.0.15.15\Shop Drawings\Jobs\"