... stackscript and script of the first card?
function isBuildingStandalone
return (the environment is "development" AND there is a stack "revStandaloneProgress" AND the mode of stack "revStandaloneProgress" > 0)
end isBuildingStandalone
on openstack
if isBuildingStandalone() then
exit openstack ...
Search found 16 matches: revStandaloneProgress
Searched query: revstandaloneprogress
- Tue May 03, 2022 4:34 pm
- Forum: Talking LiveCode
- Topic: Standalone builder change?
- Replies: 14
- Views: 6494
- Fri Jan 21, 2022 10:23 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: save content of field [SOLVED]
- Replies: 71
- Views: 43224
Re: save content of field [SOLVED]
... but none of them is entirely upgraded. function isBuildingStandalone
return (the environment is "development" AND there is a stack "revStandaloneProgress" AND the mode of stack "revStandaloneProgress" > 0)
end isBuildingStandalone
on openstack
if isBuildingStandalone() then
exit openstack ...
return (the environment is "development" AND there is a stack "revStandaloneProgress" AND the mode of stack "revStandaloneProgress" > 0)
end isBuildingStandalone
on openstack
if isBuildingStandalone() then
exit openstack ...
- Sun Dec 19, 2021 12:19 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: save content of field [SOLVED]
- Replies: 71
- Views: 43224
Re: save content of field
... is the stack script of the "splash stack" function isBuildingStandalone
return (the environment is "development" AND there is a stack "revStandaloneProgress" AND the mode of stack "revStandaloneProgress" > 0)
end isBuildingStandalone
on openstack
if isBuildingStandalone() then
exit openstack ...
return (the environment is "development" AND there is a stack "revStandaloneProgress" AND the mode of stack "revStandaloneProgress" > 0)
end isBuildingStandalone
on openstack
if isBuildingStandalone() then
exit openstack ...
- Thu Dec 16, 2021 6:30 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: save content of field [SOLVED]
- Replies: 71
- Views: 43224
Re: save content of field
yep, that's my stack "splash" script
function isBuildingStandalone
return (the environment is "development" AND there is a stack "revStandaloneProgress" AND the mode of stack "revStandaloneProgress" > 0)
end isBuildingStandalone
on openstack
if isBuildingStandalone() then
exit openstack
end if ...
function isBuildingStandalone
return (the environment is "development" AND there is a stack "revStandaloneProgress" AND the mode of stack "revStandaloneProgress" > 0)
end isBuildingStandalone
on openstack
if isBuildingStandalone() then
exit openstack
end if ...
- Mon Dec 06, 2021 3:31 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: save content of field [SOLVED]
- Replies: 71
- Views: 43224
Re: save content of field
... into the stack script of "Splash.livecode":
function isBuildingStandalone
return (the environment is "development" AND there is a stack "revStandaloneProgress" AND the mode of stack "revStandaloneProgress" > 0)
end isBuildingStandalone
Then add this to your "on openstack" Handler:
on openstack ...
function isBuildingStandalone
return (the environment is "development" AND there is a stack "revStandaloneProgress" AND the mode of stack "revStandaloneProgress" > 0)
end isBuildingStandalone
Then add this to your "on openstack" Handler:
on openstack ...
- Wed Mar 17, 2021 12:08 pm
- Forum: Talking LiveCode
- Topic: CloseStack, CloseStackRequest don't run in standalone
- Replies: 4
- Views: 4350
Re: CloseStack, CloseStackRequest don't run in standalone
... Here are the new close/quit handlers which I have placed in card 1 which is the only card:
on closeStackRequest
-- if the mode of stack "revStandaloneProgress" > 0 then
-- exit closeStackRequest
-- end if
try
WritePreferenceFile
pass closeStackRequest
catch tError
answer "An error occurred ...
on closeStackRequest
-- if the mode of stack "revStandaloneProgress" > 0 then
-- exit closeStackRequest
-- end if
try
WritePreferenceFile
pass closeStackRequest
catch tError
answer "An error occurred ...
- Tue Mar 16, 2021 10:05 am
- Forum: Talking LiveCode
- Topic: CloseStack, CloseStackRequest don't run in standalone
- Replies: 4
- Views: 4350
Re: CloseStack, CloseStackRequest don't run in standalone
Hi Simon,
I think you have to add this scriot in your stack script
on closeStack
if there is a stack "revStandaloneProgress" then
if the mode of stack "revStandaloneProgress" > 0 then
exit closeStack
end if
else
pass closeStack
end if
end closeStack
Here is explanation about it
https ...
I think you have to add this scriot in your stack script
on closeStack
if there is a stack "revStandaloneProgress" then
if the mode of stack "revStandaloneProgress" > 0 then
exit closeStack
end if
else
pass closeStack
end if
end closeStack
Here is explanation about it
https ...
- Wed Nov 18, 2020 10:33 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Standalone compile never leaves closing open stacks
- Replies: 21
- Views: 29707
Re: Standalone compile never leaves closing open stacks
... can exit from the handler if standalone building is in progress:
on closeStack
if the environment is "development" AND there is a stack
"revStandaloneProgress" AND the mode of stack
"revStandaloneProgress" > 0 then
exit closeStack
end if
...
...
end closeStack
All stack-related messages need ...
on closeStack
if the environment is "development" AND there is a stack
"revStandaloneProgress" AND the mode of stack
"revStandaloneProgress" > 0 then
exit closeStack
end if
...
...
end closeStack
All stack-related messages need ...
- Tue Nov 17, 2020 6:18 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: Standalone compile never leaves closing open stacks
- Replies: 21
- Views: 29707
Re: Standalone compile never leaves closing open stacks
if you're referring to the following from release notes on v9.0.0:
on closeStack
if the mode of stack "revStandaloneProgress" > 0 then
exit closesStack
end if
end closeStack
yes ... kind-of ... since I don't use the "closeStack" handler specifically, I did try this in the button which actually ...
on closeStack
if the mode of stack "revStandaloneProgress" > 0 then
exit closesStack
end if
end closeStack
yes ... kind-of ... since I don't use the "closeStack" handler specifically, I did try this in the button which actually ...
- Fri Feb 07, 2020 10:48 am
- Forum: Android Deployment
- Topic: Checking internet connection is blocking
- Replies: 2
- Views: 4795
Re: Checking internet connection is blocking
... putting this in the stack script:
local sConnectionTrue = false
on OpenStack
if the environment is "development" and there is a stack "revStandaloneProgress" and the mode of stack "revStandaloneProgress" > 0 then
exit OpenStack
end if
breakpoint
put "No connection" into fld "FldResult ...
local sConnectionTrue = false
on OpenStack
if the environment is "development" and there is a stack "revStandaloneProgress" and the mode of stack "revStandaloneProgress" > 0 then
exit OpenStack
end if
breakpoint
put "No connection" into fld "FldResult ...
- Sat Apr 13, 2019 4:15 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: CreateProcess failed:The system cannot find the path specified
- Replies: 15
- Views: 26236
Re: CreateProcess failed:The system cannot find the path specified
Hi Marra,
Not sure that help but if you have a closestack message you maybe need using this:
on closeStack
if there is a stack "revStandaloneProgress" then
if the mode of stack "revStandaloneProgress" > 0 then
exit closeStack
end if
else
pass closeStack
end if
end closeStack
Best regards
Jean ...
Not sure that help but if you have a closestack message you maybe need using this:
on closeStack
if there is a stack "revStandaloneProgress" then
if the mode of stack "revStandaloneProgress" > 0 then
exit closeStack
end if
else
pass closeStack
end if
end closeStack
Best regards
Jean ...
- Tue Oct 30, 2018 10:32 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: A compile problem
- Replies: 11
- Views: 15634
Re: A compile problem
Hi All,
I get an error on IDE (LC 9.0.1)
can't find stack
so i added some lines to avoid this:
on closeStack
if there is a stack "revStandaloneProgress" then
if the mode of stack "revStandaloneProgress" > 0 then
exit closeStack
end if
else
pass closeStack
end if
end closeStack
Best regards ...
I get an error on IDE (LC 9.0.1)
can't find stack
so i added some lines to avoid this:
on closeStack
if there is a stack "revStandaloneProgress" then
if the mode of stack "revStandaloneProgress" > 0 then
exit closeStack
end if
else
pass closeStack
end if
end closeStack
Best regards ...
- Wed Jul 04, 2018 1:11 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: A compile problem
- Replies: 11
- Views: 15634
Re: A compile problem
@panos
Just a question.
Why can’t something like ...
Just a question.
Why can’t something like ...
Be built into the standalone builder scripts?on closeStack
if the mode of stack "revStandaloneProgress" > 0 then
exit closeStack
end if
- Tue Jul 03, 2018 9:45 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: A compile problem
- Replies: 11
- Views: 15634
Re: A compile problem
... This can be prevented by exiting these handlers if a standalone build is in progress. To check that:
on closeStack
if the mode of stack "revStandaloneProgress" > 0 then
exit closeStack
end if
...
...
end closeStack
2. Yes, that would be ideal. We had discussed refactoring the S/B in the ...
on closeStack
if the mode of stack "revStandaloneProgress" > 0 then
exit closeStack
end if
...
...
end closeStack
2. Yes, that would be ideal. We had discussed refactoring the S/B in the ...
- Mon Jul 02, 2018 2:55 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: A compile problem
- Replies: 11
- Views: 15634
Re: A compile problem
... end closeStack
So since this message is sent when building a standalone, LiveCode quits, as expected.
To fix this problem, you can modify this handler as follows:
on closeStack
if the mode of stack "revStandaloneProgress" > 0 then
exit closeStack
end if
quit
end closeStack
Best,
Panos
--
So since this message is sent when building a standalone, LiveCode quits, as expected.
To fix this problem, you can modify this handler as follows:
on closeStack
if the mode of stack "revStandaloneProgress" > 0 then
exit closeStack
end if
quit
end closeStack
Best,
Panos
--