Re: FYI, initializing variables by reference

2012-06-19 Thread Bob Sneidar
Brilliant! (Can I immigrate to the UK now please? See? I can speak the language!) Bob On Jun 19, 2012, at 5:13 AM, Peter M. Brigham wrote: > Yup, try it and see. The variables are loaded and their values are available > in subsequent script lines. > > -- Peter > > Peter M. Brigham > pmb..

Re: FYI, initializing variables by reference

2012-06-19 Thread Peter M. Brigham
Yup, try it and see. The variables are loaded and their values are available in subsequent script lines. -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On Jun 18, 2012, at 4:53 PM, Bob Sneidar wrote: > You are saying these variables survive the command call because

Re: FYI, initializing variables by reference

2012-06-18 Thread Bob Sneidar
You are saying these variables survive the command call because they are called by reference? Interesting! I would have thought that this would throw a compile error because the variables do not exist in the calling handler. Bob On Jun 18, 2012, at 7:24 AM, Peter M. Brigham wrote: > For some

FYI, initializing variables by reference

2012-06-18 Thread Peter M . Brigham
For some reason I never realized that you can use referenced variables in a command handler -- I was thinking of them only when using functions. In case others haven't discovered it, you can, for instance, do something like this: on prepareInvoice tID initializeVars tID, tName, tDOB, tAddr, tP