Are any possible commands on data in a field also possible in a variable ?
André.Bisseret
Andre.Bisseret at inria.fr
Fri May 18 10:38:26 EDT 2007
Le 18 mai 07 à 16:18, Eric Chatonet a écrit :
> Bonjour André,
>
> Le 18 mai 07 à 15:59, André.Bisseret a écrit :
>>
>>
>> My question is : are there commands that work on data in a field
>> but not on data in a variable ? Specifically, does « find » works
>> in a variable as well as in a field ?
>> Am I missing something evident ?
>>
>> Thanks a lot in advance
>>
>> Best regards from Grenoble
>> André
>
> In variables, Put will work as you expect it but Find will not:
> Use instead, combined with wholeMatches and caseSensitive if
> needed, itemOffset and/or lineOffset:
>
> 'find such item in table2' will become something like 'put <some
> value> into item itemOffset(< such item>,<table2 var>) of <table2
> var>'
> When all calculation will be done, just 'put <table2 var> into fld
> "Table2"
Bonjour Éric et merci beaucoup for your quick answer :-)
I am going to apply your advice.
> BTW working with variables is much faster because, mainly, the
> screen is refreshed only once :-)
As for this point, what about an invisible field (getting visible
only when all is done) ? does this remain slower than with a variable ?
Bonne soirée
André
More information about the use-livecode
mailing list