Why can't you use your own function for this?
EMG
function FrenchCollation()
local cList, cSort, aList, n
HB_LangSelect("FR")
HB_SetCodePage("FRWIN")
cList := "azertyuiopéqsdfghjklmùwxcvbnèà"
? cList, Upper( cList )
aList := {}
for n := 1 to Len( cList )
AAdd( aList, { SubStr( cList, n, 1 ), , } )
aList[ n, 2 ] := ASC( aList[ n, 1 ] )
aList[ n, 3 ] := UPPER( aList[ n, 1 ] )
next
ASort( aList, , , { |x,y| x[ 1 ] < y[ 1 ] } )
XBROWSER aList TITLE "FRENCH SORTING" ;
SETUP ( oBrw:cHeaders := { "CHAR", "ASC", "UPPER" }, ;
oBrw:nDataStrAligns := AL_CENTER ) ;
SHOW RECID
return nil
function frenchIndexing()
field FLDCHR, FLDASC
local cList, n
HB_LangSelect("FR")
HB_SetCodePage("FRWIN")
cList := "azertyuiopéqsdfghjklmùwxcvbnèà"
? cList, Upper( cList )
FERASE( "TFRENCH.CDX" )
DBCREATE( "TFRENCH.DBF", { { "FLDCHR", "C", 1, 0 }, { "FLDASC", "N", 5, 0 } }, "DBFCDX" )
USE TFRENCH NEW EXCLUSIVE VIA "DBFCDX" CODEPAGE "FRWIN"
for n := 1 to Len( cList )
DBAPPEND()
FLDCHR := SubStr( cList, n, 1 )
FLDASC := ASC( FLDCHR )
next
INDEX ON UPPER(FLDCHR) TAG FLDCHR
GO TOP
XBROWSER "TFRENCH" TITLE "FRENCH DBFCDX COLLATION" ;
COLUMNS "FLDCHR", "FLDASC", "ORDKEYVAL()" SHOW RECID ;
SETUP ( oBrw:nDataStrAligns := AL_CENTER )
return nil
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 43 guests