AW: Stringsearch

Rudolf Bargholz rudolf at bargholz.ch
Mon Dec 15 02:10:23 EST 2014


Hi Daniel,

Set current list #L1
Define list {#S1}
Add line to list {('aaa')}
Add line to list {('bbb')}
Add line to list {('CAC')}
Add line to list {('ADa')}
Add line to list {('AaE')}

Clear search class
Set search as calculation {pos('AA',upp(#S1))>0}
Search list (From start,Select matches (OR),Deselect non-matches (AND),Do not load line)

Regards

Rudolf

-----Ursprüngliche Nachricht-----
Von: omnisdev-en-bounces at lists.omnis-dev.com [mailto:omnisdev-en-bounces at lists.omnis-dev.com] Im Auftrag von Daniel Sananes
Gesendet: Freitag, 12. Dezember 2014 11:49
An: 'OmnisDev List - English'
Betreff: Stringsearch

Hi

 

This is probably simple.

I cant figure out how to select lines in a list with a particular stringvalue.

Example: would like to select the string 'Here I am' regardless if the individual characters are lower or upper case.

'here I AM' or 'hEre I am' or whatever. upp() and low() doesn't seem to work. 

Set search as calculation mid(RES_TEXT;1;7)=('Here I am')

 

Regards

Daniel

_____________________________________________________________
Manage your list subscriptions at http://lists.omnis-dev.com



More information about the omnisdev-en mailing list