Re: Forget the comma thread. Now lose semicolons
Posted: Thu Jun 29, 2017 11:36 pm
Hi Craig, wizard of LC specials.
The secret here is that LC uses tokens to parse statements.
Token delimiters are semicolon, space, tab and return.
So, every sequence of valid statements delimited by one or several of these delimiters compiles and works.
Exception: After "mouseUp" (in general: a handler name) is a space allowed only if a parameter name follows.
For example put these two lines into a button's script to see it working:
Kind regards, Hermann
The secret here is that LC uses tokens to parse statements.
Token delimiters are semicolon, space, tab and return.
So, every sequence of valid statements delimited by one or several of these delimiters compiles and works.
Exception: After "mouseUp" (in general: a handler name) is a space allowed only if a parameter name follows.
For example put these two lines into a button's script to see it working:
Code: Select all
On mouseUp; put "a" into fld 1 put "b" into fld 2
do ("put 3 into fld 3"&tab&"put 4 into fld 4") end mouseUp