4747
CODE PAGE & COLLATION SEQUENCE

 

Contents:

Notes about CODE PAGE

Setting
go top

Transformations string-data
go top

Resetting
go top

Notes about COLLATION SEQUENCE

Setting
go top

Influence on indexes
go top

Resetting
go top

As is told above, only by a modification of an index, besides Collation Seqience takes from SET('COLLATE') from current DataSession

Mike's test demonstratings of an error:
go top

**** start of any.prg
if cpcur()!=1251
    activate screen
    clear
    ? 'Please set in CONFIG.FPW'
    ? ' CodePage=1251'
    ?? chr(7)
    return
endif

CLOSE DATA ALL

=CreateData()

set collate to 'Russian'
=RunQuery()

set collate to 'Machine'
=RunQuery()

move window (wontop()) by 0,20

*************
function RunQuery
select * from tbl1 where TblID not in (select TblID from tbl2) ;
	into cursor ('Collate_'+set('collate'))
browse nowait

***********
function CreateData
close data
create cursor tbl1 (TblID I)
create cursor tbl2 (TblID I)
for i=1 TO 1000
    insert into tbl1 values (i)
    insert into tbl2 values (i)
endfor

**** end of any.prg

See also in MSDN:

File FoxPro.int
go top

For version VFP 5.0 and less... and for Microsoft Visual FoxPro ODBC Driver, need file FoxPro.int (Code page and collation sequence file) in Windows\System[32]

See also:
Q141913 PRB: Error 1915 - Collating Sequence "" is not found
Q138614 Description of Foxpro.int Table
Q150502 PRB: Collating Sequences Not Displayed in the Setup Dialog
http://msdn.microsoft.com/vfoxpro/downloads/download.asp?ID=027 - Visual FoxPro 6.0 ODBC Driver FoxPro.int Resource File

 
 
Hosted by uCoz