Page 1 of 1

DO command

Posted: Thu Feb 04, 2010 8:03 am
by DavidBurleigh
quick question. I want a field on one of my tabs that will let
clients insert ad hoc code. If I write a custom function
or handler, let's call it 'DoSomething()', and I have some code
like this:

repeat for each line someLine in field "suchandsuch"
put DoSomething(someLine) into SomeValue
answer SomeValue
end repeat

Would this count as 4 lines against the 10 line limit? or does
it add in all the lines in the function or handler also?
thanks, if you can reply to incomex@NOSPAMhotmail.com
directly, thanks.

Re: DO command

Posted: Sun Mar 07, 2010 10:33 am
by Mark
DavidBurleigh,

Your script snippet would count as 4 lines, unless the doSomething() function contains another do command. It is not always exactly clear as how many lines a piece of code is actually counted. Sometimes, it appears that you can execute 12 or 13 lines.

Best,

Mark