Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Script: checking whether a text string is between other text strings

Good afternoon,

text string 'SE38' is between strings 'SE16O*' and ' Z*'. Is there a script function to check for this?

Many thanks,

Leonardo

13 Replies
swuehl
MVP
MVP

I must admit I haven't understood the requirement neither, but  isn't there a space before Z in the OP's post?

string follows 'SE16O' and string precedes ' Z' as Flag

Does this fulfill the requirement then

Peter_Cammaert
Partner - Champion III
Partner - Champion III

I guess (and Marco did too) that in his second post, Leonardo explained that he was looking for a test that decides whether the ASCII value of a particular field falls between two text strings.

SE160 < SE38 < Z* = true

SEF < SE38 < Z* = false

You can't do that with normal relational operators because they work on numbers. Precedes & Follows work on strings.

Peter_Cammaert
Partner - Champion III
Partner - Champion III

I guess the space is a mistake. Otherwise we'll have to overload some operators. Does QlikView script language support that?

sunny_talwar

Got it. I would have never understood this by my own.