Distinguishes whether ASCAN () small and big letters?

This forum is for eXpress++ general support.
Post Reply
Message
Author
User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Distinguishes whether ASCAN () small and big letters?

#1 Post by Eugene Lutsenko »

Distinguishes whether ASCAN () small and big letters?
What to do to make this function distinguish big and small letters?

Wolfgang Ciriack
Posts: 484
Joined: Wed Jan 27, 2010 10:25 pm
Location: Berlin Germany

Re: Distinguishes whether ASCAN () small and big letters?

#2 Post by Wolfgang Ciriack »

You can use f.e.

Code: Select all

aArray:={{"Mayer","Kurt"},{"MAYER","KONRAD"}}
p:=AScan(aArray,{|a| upper(a[1])=="MAYER"})
This find every "MAYER" or "mayer" or "Mayer" .or. ...
_______________________
Best Regards
Wolfgang

User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Re: Distinguishes whether ASCAN () small and big letters?

#3 Post by Eugene Lutsenko »

I could not do that ASCAN () distinguish large and small characters. Do not pray and SET EXACT and SET LEXICAL. Had to compare items with Creed on ASCII, then everything worked as I wanted:

Code: Select all

M_Symb = ASC(SUBSTR(Fv, w, 1))
IF ASCAN(A_SymbCls, M_Symb) = 0
    AADD( A_SymbCls, M_Symb)    // Массив наименований градаций класс.шкал (классов)
ENDIF

Post Reply