ValidCodePage

Top  Previous  Next

This function returns a codepage which matches the currently loaded roadnames.

If possible it will return the default codepage for the system, otherwise it will look through the list of codepages and return the first match.

 

If TAB parameter is true, it returns a codepage valid for TAB/MIF output.

If TAB parameter is false, it returns a codepage valid for SHP/DBF output.

 

If the function returns 0, it didn't find any codepage matching all roadnames (possible, but not likely to happen).

 

Assign the value to CodePage property.

 

Syntax: ValidCodePage(TAB: boolean): word;

 

 

List of codepages and matching charset name for TAB/MIF files:

 

1252, WindowsLatin1

1250, WindowsLatin2

1256, WindowsArabic

1251, WindowsCyrillic

1253, WindowsGreek  

1255, WindowsHebrew

1254, WindowsTurkish

950, WindowsTradChinese

936, WindowsSimpChinese

932, WindowsJapanese

949, WindowsKorean

874, WindowsThai  

1257, WindowsBalticRim

1258, WindowsVietnamese

437, CodePage437  

850, CodePage850  

852, CodePage852  

857, CodePage857  

860, CodePage860  

861, CodePage861  

863, CodePage863  

865, CodePage865  

855, CodePage855  

864, CodePage864  

869, CodePage869  

28591, ISO8859_1    

28592, ISO8859_2    

28593, ISO8859_3    

28594, ISO8859_4    

28595, ISO8859_5    

28596, ISO8859_6    

28597, ISO8859_7    

28598, ISO8859_8    

28599, ISO8859_9