Re: The 'startup' message not working in IDE

2016-06-09 Thread Jerry Jensen
Hah! I was wondering if anybody would get that. > On Jun 9, 2016, at 6:53 PM, Dar Scott wrote: > > Yeah, I started out in FORTRAN a half century ago, and I have habits from > that. > >> On Jun 9, 2016, at 7:42 PM, Jerry Jensen wrote: >> >> Heck, I still use i,j,k,l,m,n variables for intege

Re: The 'startup' message not working in IDE

2016-06-09 Thread Dar Scott
Yeah, I started out in FORTRAN a half century ago, and I have habits from that. > On Jun 9, 2016, at 7:42 PM, Jerry Jensen wrote: > > >> On Jun 9, 2016, at 6:31 PM, Mark Wieder wrote: >> >> On 06/09/2016 05:11 PM, Jerry Jensen wrote: >>> True, true. in that example the “;” separates the de

Re: The 'startup' message not working in IDE

2016-06-09 Thread Jerry Jensen
> On Jun 9, 2016, at 6:31 PM, Mark Wieder wrote: > > On 06/09/2016 05:11 PM, Jerry Jensen wrote: >> True, true. in that example the “;” separates the declaration command from >> the assignment command. My mistake. >> >> However, here is an example that does the assignment right in the >> decl

Re: The 'startup' message not working in IDE

2016-06-09 Thread Mark Wieder
On 06/09/2016 05:11 PM, Jerry Jensen wrote: True, true. in that example the “;” separates the declaration command from the assignment command. My mistake. However, here is an example that does the assignment right in the declaration command, on the fly: It seems to work (!). Honestly, I half e

Re: The 'startup' message not working in IDE

2016-06-09 Thread Jerry Jensen
True, true. in that example the “;” separates the declaration command from the assignment command. My mistake. However, here is an example that does the assignment right in the declaration command, on the fly: It seems to work (!). Honestly, I half expected it to fail on the first do. on mouseU

Re: The 'startup' message not working in IDE

2016-06-08 Thread Mark Wieder
On 06/08/2016 07:40 PM, Jerry Jensen wrote: The dictionary claims that it is legal syntax (in 7 and 8). The example therein shows that handler locals can be declared and assigned values at runtime using a do in a loop. I would never have thought of that! If you're referring to the dictionary

Re: The 'startup' message not working in IDE

2016-06-08 Thread Jerry Jensen
The dictionary claims that it is legal syntax (in 7 and 8). The example therein shows that handler locals can be declared and assigned values at runtime using a do in a loop. I would never have thought of that! .Jerry > On Jun 8, 2016, at 7:27 PM, Mark Wieder wrote: > > On 06/08/2016 05:50 PM,

Re: The 'startup' message not working in IDE

2016-06-08 Thread Mark Wieder
On 06/08/2016 05:50 PM, Dar Scott wrote: I'm curious about this, too. I often assign values for script variables. I'm used to doing that as well in most other environments. Maybe it's just my faulty memory, but I think I remember discussions here about not relying on assigning values to local

Re: The 'startup' message not working in IDE

2016-06-08 Thread Dar Scott
I'm curious about this, too. I often assign values for script variables. > On Jun 8, 2016, at 6:37 PM, Jerry Jensen wrote: > > >> On Jun 8, 2016, at 4:20 PM, Mark Wieder wrote: >> >> I thought assigning values in a variable declaration was discouraged. > > I probably missed that memo,

Re: The 'startup' message not working in IDE

2016-06-08 Thread Monte Goulding
> On 9 Jun 2016, at 9:20 AM, Mark Wieder wrote: > > 1: yes, but that rather defeats the purpose of having a separate routine > for "startup", doesn't it? Well the original request was for a startup handler to be called on first run of a stack in the IDE so it does that. > > 2. I thought assig

Re: The 'startup' message not working in IDE

2016-06-08 Thread Jerry Jensen
> On Jun 8, 2016, at 4:20 PM, Mark Wieder wrote: > > I thought assigning values in a variable declaration was discouraged. I probably missed that memo, I haven’t been keeping up as much as I should. I’m not in the habit of doing that except with constants, but should I avoid letting it become

Re: The 'startup' message not working in IDE

2016-06-08 Thread Mark Wieder
Monte Goulding writes: > > Or: > > local sFIrstRun = "true" > > on preOpenStack > if the owner of the target is me then > if the environment is "development" and sFIrstRun then > startup > end if > put false into sFIrstRun > end if > end preOpenStac

AW: The 'startup' message not working in IDE

2016-06-08 Thread Paul Dupuis
So, yes, I know there are a zillion work around. Boolean flags being the most classic method. I already has such a work-around in place. That said, it seems the consensus - so far - is that 'startup' only executing in the Standalone is a "feature" that people have come to use and expect, so I resp

Re: The 'startup' message not working in IDE

2016-06-08 Thread Monte Goulding
9 Jun 2016, at 6:40 AM, Mark Wieder wrote: > > Paul Dupuis writes: > >> >> In LiveCode 6.7.11 and 8.1.0rc1 the startup message is send to your main >> stack when the mainstack is built as a standalone. However, if you open >> your stack in the IDE, the startup

Re: The 'startup' message not working in IDE

2016-06-08 Thread Mark Wieder
Paul Dupuis writes: > > In LiveCode 6.7.11 and 8.1.0rc1 the startup message is send to your main > stack when the mainstack is built as a standalone. However, if you open > your stack in the IDE, the startup message is never received As mentioned, this is by design, and it'

Re: The 'startup' message not working in IDE

2016-06-08 Thread dunbarx
Paul. This was the way it worked in HC, but is different in LC. Craig Newman -Original Message- From: Monte Goulding To: How to use LiveCode Sent: Wed, Jun 8, 2016 4:16 pm Subject: Re: The 'startup' message not working in IDE Hi Paul This is as intended. Startup g

Re: The 'startup' message not working in IDE

2016-06-08 Thread Monte Goulding
One of the issues is lots of people over the years have put code in there they specifically don't want running in the IDE. I should have said standalone or home stack or stack passed go the open source standalone engine on the command line. I wonder if instead it would be feasible to pass a firs

Re: The 'startup' message not working in IDE

2016-06-08 Thread Graham Samuel
tacks that are opened. Use preOpenStack for that. > > Cheers > > Monte > > Sent from my iPhone > >> On 9 Jun 2016, at 6:09 AM, Paul Dupuis wrote: >> >> In LiveCode 6.7.11 and 8.1.0rc1 the startup message is send to your main >> stack when the mainstack is

Re: The 'startup' message not working in IDE

2016-06-08 Thread Paul Dupuis
On 6/8/2016 4:14 PM, Monte Goulding wrote: > This is as intended. Startup goes to the first stack the engine runs not > other stacks that are opened. Use preOpenStack for that. Yes, but should the IDE count as the "first stack" opened? I would argue that it should not. The first stack opened shou

Re: The 'startup' message not working in IDE

2016-06-08 Thread Monte Goulding
Hi Paul This is as intended. Startup goes to the first stack the engine runs not other stacks that are opened. Use preOpenStack for that. Cheers Monte Sent from my iPhone > On 9 Jun 2016, at 6:09 AM, Paul Dupuis wrote: > > In LiveCode 6.7.11 and 8.1.0rc1 the startup message is sen

The 'startup' message not working in IDE

2016-06-08 Thread Paul Dupuis
In LiveCode 6.7.11 and 8.1.0rc1 the startup message is send to your main stack when the mainstack is built as a standalone. However, if you open your stack in the IDE, the startup message is never received You can test this by making a new stack with the following script in the stack script: on

Re: where does "startup" message go when in IDE

2015-07-05 Thread Mark Wieder
Yup. Graham nailed it here. The startup message is really only useful in a standalone app. I have used it to take care of some setup stuff that's only really useful in a standalone and not in the IDE. As Richard noted, once the IDE is running it's already loaded several system st

Re: where does "startup" message go when in IDE

2015-07-05 Thread Richard Gaskin
It's helpful to remember that the IDE is just a collection of stacks, which are run automatically whenever the development engine is launched. So the Dictionary's explanation is correct, and the recipient of the startup message when running the IDE will be the IDE. To initial

Re: where does "startup" message go when in IDE

2015-07-05 Thread Graham Samuel
I think the startup message actually goes to the first card of the first stack to be opened. In effect it gets swallowed in the IDE which has its own first card, opened long before your script starts executing (well, I think that’s what’s happening). For a long time now I have used this fact

Re: where does "startup" message go when in IDE

2015-07-05 Thread Randy Hengst
I’m happy to be wrong on this, but it’s my understanding that startUp is only seen by a standalone… and that "Handle the startup message if you want to do initialization or other tasks when the application ” in the dictionary is literal. I’m currently just building for iOS… so, I plac

Re: where does "startup" message go when in IDE

2015-07-05 Thread dunbarx
I am wrong about that. Craig -Original Message- From: Dr. Hawkins To: How to use LiveCode Sent: Sun, Jul 5, 2015 11:19 am Subject: where does "startup" message go when in IDE I've found the startup message, to be sent to the first stack opened. It seems useful, but

where does "startup" message go when in IDE

2015-07-05 Thread Dr. Hawkins
I've found the startup message, to be sent to the first stack opened. It seems useful, but I haven't been able to trap it in the IDE. In particular, I found an incantation to hide the stack or some such for use at the command line. Is it going to an IDE card? Could I simulate it with

Re: startUp message not being sent

2013-02-25 Thread Klaus on-rev
Hi Tom, Am 25.02.2013 um 17:03 schrieb Thomas McGrath III : > Haa! Bang my head and call me duh! DUH! :-D > Thanks > -- Tom McGrath III > http://lazyriver.on-rev.com > mcgra...@mac.com Best Klaus -- Klaus Major http://www.major-k.de kl...@major.on-rev.com __

Re: startUp message not being sent

2013-02-25 Thread Thomas McGrath III
Haa! Bang my head and call me duh! Thanks -- Tom McGrath III http://lazyriver.on-rev.com mcgra...@mac.com On Feb 25, 2013, at 11:01 AM, Klaus on-rev wrote: > Hi Tom, > > Am 25.02.2013 um 16:46 schrieb Thomas McGrath III : > >> I was trying to set an 'on first laun

Re: startUp message not being sent

2013-02-25 Thread Klaus on-rev
Hi Tom, Am 25.02.2013 um 16:46 schrieb Thomas McGrath III : > I was trying to set an 'on first launch' flag in the startUp message but it > does not seem to fire at all? Is anyone else seeing this? > > on startUp > global gFirstLaunch > put true into gFirstLaunch

startUp message not being sent

2013-02-25 Thread Thomas McGrath III
I was trying to set an 'on first launch' flag in the startUp message but it does not seem to fire at all? Is anyone else seeing this? on startUp global gFirstLaunch put true into gFirstLaunch end startUp -- Tom McGrath III http://lazyriver.on-rev.com mcgra.

Re: Startup message

2011-08-02 Thread Graham Samuel
Startup will do what you want. To test while in the IDE, do send "startup" to stack "mymainstack" from the message box. HTH Graham On :Tue, 2 Aug 2011 13:57:14 -0700, Pete > > Thanks Richard. If I understand the message path correctly, the > preOpenStack handler in the mainstack will be ex

Re: Startup message

2011-08-02 Thread Bob Sneidar
Behalf Of Richard Gaskin >> Sent: Tuesday, August 02, 2011 4:30 PM >> To: use-livecode@lists.runrev.com >> Subject: Re: Startup message >> >> Pete wrote: >>> Thanks folks, didn't realise this message only applied to >> standalones. Is >>> th

Re: Startup message

2011-08-02 Thread Pete
Thanks, makes sense. Pete Molly's Revenge On Tue, Aug 2, 2011 at 2:04 PM, Mark Schonewille < m.schonewi...@economy-x-talk.com> wrote: > Hi Pete, > > Move your script from the stack script to the card script. If you keep a > preOpenStack script in the card script,

Re: Startup message

2011-08-02 Thread Richard Gaskin
Slava Paperno wrote: On a related note: I have often wished that preOpenStack and openStack were not called when I open the stack in the IDE. When the programming is not finished, some calls that are already written into those handlers cannot yet be successful because other parts are missing. The

Re: Startup message

2011-08-02 Thread Mark Schonewille
Hi Pete, Move your script from the stack script to the card script. If you keep a preOpenStack script in the card script, then it won't be executed when other substacks are opened. If you want the script to execute in the standalone only and not in the IDE, then you have to options. Either put

Re: Startup message

2011-08-02 Thread J. Landman Gay
On 8/2/11 3:49 PM, Slava Paperno wrote: On a related note: I have often wished that preOpenStack and openStack were not called when I open the stack in the IDE. When the programming is not finished, some calls that are already written into those handlers cannot yet be successful because other par

Re: Startup message

2011-08-02 Thread Pete
Thanks Richard. If I understand the message path correctly, the preOpenStack handler in the mainstack will be executed for every substack of the main stack that is opened? I can easily check whether my initialisation code has already executed in the handler but was hoping for a way to have the co

RE: Startup message

2011-08-02 Thread Slava Paperno
stigate if it's true. Slava > -Original Message- > From: use-livecode-boun...@lists.runrev.com [mailto:use-livecode- > boun...@lists.runrev.com] On Behalf Of Richard Gaskin > Sent: Tuesday, August 02, 2011 4:30 PM > To: use-livecode@lists.runrev.com > Subject: Re

Re: Startup message

2011-08-02 Thread Richard Gaskin
Pete wrote: Thanks folks, didn't realise this message only applied to standalones. Is there then no equivalent for stacks running in the IDE, other than a preOpenCard/preOpenStack handler? Startup is for when the engine starts up, preOpenStack is for when a stack is opened. Having both messa

Re: Startup message

2011-08-02 Thread Pete
stack actually the mainstack of the standalone that you are > starting? otherwise, it will not get any startup messages. Use preopencard > or preopenstack instead if you just want to do something when your stack is > opened. > > On 2 Aug 2011, at 20:58, Pete wrote: > > > Not ha

Re: Startup message

2011-08-02 Thread Björnke von Gierke
ing the startup message. I have a handler for it in > the stack script of my main stack but it doesn't seem to get the message > (tried an answer info, setting a global, setting a cprop of the stack, none > of it happens Any clues? > > Pete > Molly's Reveng

Re: Startup message

2011-08-02 Thread Mark Schonewille
Pete, The startUp message isn't sent to your stack if you open the stack in the IDE, nor if you open the stack while your standalone is already running. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter:

Startup message

2011-08-02 Thread Pete
Not having any luck using the startup message. I have a handler for it in the stack script of my main stack but it doesn't seem to get the message (tried an answer info, setting a global, setting a cprop of the stack, none of it happens Any clues? Pete Molly's Rev

Re: Startup message anomaly?

2011-04-25 Thread Bob Sneidar
Be careful with Parallels. Someone else (or maybe it was you) was saying that Parallels was returning unexpected path results. I believe it has something to do with Folder Redirection, a feature of Parallels which allows a user to redirect his windows profile and other folders to the Mac equival

Re: Startup message anomaly?

2011-04-23 Thread Graham Samuel
n Fri, 22 Apr 2011 10:12:52 -0500, "J. Landman Gay" wrote > > On 4/22/11 3:43 AM, Graham Samuel wrote: >> I've been taking the following description of the 'startup' message >> in the LS dictionary literally: >> >>> Sent to the first

Re: Startup message anomaly?

2011-04-22 Thread J. Landman Gay
On 4/22/11 3:43 AM, Graham Samuel wrote: I've been taking the following description of the 'startup' message in the LS dictionary literally: Sent to the first stack opened when the application starts up. Well AFAIK the real case is that this is true for a Mac standalone but n

Startup message anomaly?

2011-04-22 Thread Graham Samuel
I've been taking the following description of the 'startup' message in the LS dictionary literally: > Sent to the first stack opened when the application starts up. Well AFAIK the real case is that this is true for a Mac standalone but not in a Windows standalone. In th