Missing 'on' does not cause error...

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm

Re: Missing 'on' does not cause error...

Post by [-hh] » Sat Apr 19, 2014 12:40 am

..........
Last edited by [-hh] on Wed Aug 13, 2014 2:33 pm, edited 1 time in total.
shiftLock happens

Simon Knight
Posts: 919
Joined: Wed Nov 04, 2009 11:41 am

Re: Missing 'on' does not cause error...

Post by Simon Knight » Sat Apr 19, 2014 8:30 am

What fun! This code really makes me smile, up to now I have being creating invisible label fields to leave myself instructions this is so much better. One minor point is I had to wrap the code in a try catch statement as I have some commercial plugins running which use password protected stacks and the script throws an error it it is unable to access these stacks.

Do this "put" statements cause any problems when the code is compiled and there is no message box to receive them (I know there is a switch but...)?

best wishes

Simon
best wishes
Skids

dave.kilroy
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 858
Joined: Wed Jun 24, 2009 1:17 pm
Contact:

Re: Missing 'on' does not cause error...

Post by dave.kilroy » Sat Apr 19, 2014 9:55 am

Hermann I LIKE that script! :D
"...this is not the code you are looking for..."

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm

Re: Missing 'on' does not cause error...

Post by [-hh] » Sat Apr 19, 2014 10:05 am

..........
Last edited by [-hh] on Wed Aug 13, 2014 2:33 pm, edited 1 time in total.
shiftLock happens

dave.kilroy
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 858
Joined: Wed Jun 24, 2009 1:17 pm
Contact:

Re: Missing 'on' does not cause error...

Post by dave.kilroy » Sat Apr 19, 2014 10:27 am

Hermann better to wait for one of the other 'big cheeses' from the LiveCode universe (and you, by the way are a big cheese) as I only class myself as a little cheese and pineapple combination on a cocktail stick :)

Regarding 'put' statements in standalones, I'm the same as you in that I've never yet password protected a stack, but during development I have run compiled standalones with 'put' statements in them that in the IDE would go to the message box - and have never noticed a problem (although I comment them out before releasing software)

PS: please forgive my use of the 'c' word
"...this is not the code you are looking for..."

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm

Re: Missing 'on' does not cause error...

Post by [-hh] » Sat Apr 19, 2014 11:05 am

..........
Last edited by [-hh] on Wed Aug 13, 2014 2:33 pm, edited 1 time in total.
shiftLock happens

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10331
Joined: Wed May 06, 2009 2:28 pm

Re: Missing 'on' does not cause error...

Post by dunbarx » Sat Apr 19, 2014 3:23 pm

A big cheese is usually round and portly, and aged. I am mainly the third.

I think that all one needs to be one is to have paid ones dues. If you once programmed on a Mac Plus, you are a great round.

Craig

dave.kilroy
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 858
Joined: Wed Jun 24, 2009 1:17 pm
Contact:

Re: Missing 'on' does not cause error...

Post by dave.kilroy » Sat Apr 19, 2014 3:57 pm

Paul apologies for encouraging further 'drift' in your thread

Hermann well I think you have displayed your credentials in your last posting (I had no idea about exploding Corsican cheese and had to look it up) - in fact I suspect you would out-class me in every type of dairy product :D
"...this is not the code you are looking for..."

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm

Re: Missing 'on' does not cause error...

Post by [-hh] » Sat Apr 19, 2014 4:44 pm

..........
Last edited by [-hh] on Wed Aug 13, 2014 2:32 pm, edited 1 time in total.
shiftLock happens

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Missing 'on' does not cause error...

Post by jacque » Sat Apr 19, 2014 5:23 pm


Do this "put" statements cause any problems when the code is compiled and there is no message box to receive them
In standalones, CGIs, or any other situation where the message box is unavailable, all put statements that don't have a destination defined go to stdout. Until Apple changed things in Mavericks, you could read the output in Console, which was a very handy debugging technique. I've put in a bug report to restore the behavior. Whatever method can read stdout in other OSs should work in those too.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply