Sv: Searches of a list

Daniel Sananes daniel.s at kopparbergs.se
Sun Jan 1 13:23:57 UTC 2023


Have we forgotten about eval() and evalf() ?

Test for valid calculation {evalf(lSearch)}
If flag true
  Set search as calculation {evalf(lSearch)}
End If

regards
Daniel

-----Ursprungligt meddelande-----
Från: omnisdev-en <omnisdev-en-bounces at lists.omnis-dev.com> För Das Goravani
Skickat: den 31 december 2022 19:40
Till: OmnisDev List - English <omnisdev-en at lists.omnis-dev.com>
Ämne: Searches of a list


I am doing a search of a list in Studio 4 on Windows

I cannot get it to search my list. Examining it after this executes, there are no "S"s on the list lines when you examine the contents of the variable. I have tried my list.$search() and Set search as calculation way.

Is this a valid list search for "Set search as calculation"

pos('b',low(ilMasterList.CB_SPEC))>0|pos('b',low(ilMasterList.CB_COMM))>0|pos('b',low(ilMasterList.CB_NAME))>0|pos('b',low(ilMasterList.CB2_CER))>0|pos('b',low(ilMasterList.CB_MAST))>0

It’s just the same thing over 5 times… if the search string, in this case letter b, is in any one of the 5 fields, then select this line

And when you use Set Search as Calculation with a VAR containing your search, do you use square brackets?

Ie

Set search as calculation [mySearchString]

Or do you NOT use square brackets in that case.

Do you think this should work

Do myList.$search( [mySearchString] )
_____________________________________________________________
Manage your list subscriptions at https://lists.omnis-dev.com Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
VARNING: Det här e-postmeddelandet kommer från en extern avsändare. KLICKA INTE på länkar eller bilagor om du inte känner igen avsändaren och vet att innehållet är säkert.


More information about the omnisdev-en mailing list