Page 2 of 2

Re: Trigger Timing

Posted: Thu Jan 23, 2014 7:11 am
by Perfect Human Interface
Wow, thank you very much Trog. I guess looking at the green conversion it wasn't so ridiculous as I thought. And yes, it works just fine. I'll study the Ruby "tutorial" when I have time later. :) Above and beyond as always... I appreciate it.

Re: Trigger Timing

Posted: Thu Jan 23, 2014 9:51 am
by trogluddite
You're welcome. :D

Re: Trigger Timing

Posted: Thu Jan 23, 2014 9:58 am
by RJHollins
TROG ... you mentioned naming of INPUTS on the RUBY module, and cautioned about punctuation and spaces in the name. Now you have me wondering ... :shock:

There have been, hmmmm .... several times I have 2 INPUT variables that have a Name and a Number.

I've been trying to keep a simple convention, using something like this:

name
name#

? Is there a way to test if a variable name [label] is not acceptable ? :?

Re: Trigger Timing

Posted: Thu Jan 23, 2014 10:20 pm
by trogluddite
RJHollins wrote:? Is there a way to test if a variable name [label] is not acceptable ?

Something every Ruby programmer needs to know; so I've posted the answer HERE so it's easier to find.
Short version of the answer - yes, name (letters of either case) followed by digits is always acceptable. And having a convention is a fine idea - saves a hell of a lot of skipping around the code trying to remind yourself what you called things!