****************
FUNCTION FWTEST15()
****************
local i, c, u:={}, l:={}, a[256], s:=""
LOCAL charsASCII :={}, charsANSI :={}
for i:=0 to 255
c:=chr(i)
if i >= 32
aadd(charsASCII,c)
aadd(charsANSI,OemToAnsi(c))
endif
if isalpha(c) .and. ascan(u,c)==0 .and. ascan(l,c)==0
aadd(u,upper(c))
aadd(l,lower(c))
endif
next
asort(charsASCII)
asort(charsANSI)
asort(u)
asort(l)
s += "ASCII Codes 32-255 : "
aeval(charsASCII,{|x|s+=x})
s+=CRLF
s += "ANSI Codes 32-255 : "
aeval(charsANSI,{|x|s+=x})
s+=CRLF
s += "Upper() : "
aeval(u,{|x|s+=x})
s+=CRLF
s += "Lower() : "
aeval(l,{|x|s+=x})
s+=CRLF
memowrit("C:\letters.out", s)
? UPPER( "x" )
HB_LangSelect("DE")
HB_SetCodePage("DEWIN")
c := "öäü"
? c, UPPER( c ), ISALPHA( c )
HB_LangSelect("FR")
HB_SetCodePage("FRWIN")
c := "èàùé"
? c, UPPER( c ), ISALPHA( c )
It is not like Clipper. With Clipper you have "EAUE".
It is a big problem in the indexed lists with alphabetic order... Because "é" is after "z" for example.
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 55 guests