properties vs local variable

Terence Heaford t.heaford at btinternet.com
Mon Mar 10 06:24:47 EDT 2014


I am just a beginner with LC and don’t want to spend hours reinventing the wheel so was hoping that someone can advise me which of the following is the quicker.

I could go down the milliseconds route with every script I produce but….

Is there a general rule that says

put the uRows of me into tRows
put line tRecNum to tRecNum + tRows - 1 of the uSelected of me into tSelectedData

is quicker than using

put line tRecNum to tRecNum + the uRows of me - 1 of the uSelected of me into tSelectedData

or does it not really matter

It is being used with a scrollbar so gets called quite a lot and tRows/the uRows of me appears in a number of lines in the method

All the best

Terry


More information about the use-livecode mailing list