Ultra Light Client Guide and Reference

Migrating to Unicode

In this release, the MPR files are generated using Unicode strings (UlcUnicodeSBStrings). However, in previous releases, the MPR files were generated in Unicode of type String. Unless you are running in compatibility mode, you must migrate your application as follows:

  1. Migrate your MPR files. See Migrating MPR files.
  2. Migrate your application by one of the following ways:

Migrating MPR files

Migrate your MPR files by performing the following steps:

  1. Select ULC->Tools->NLS Tools->Migrate pre-R3.0 Unicode MPRs to new Unicode MPR format.
  2. Select which MPRs to migrate.

Converting Strings to Unicode

If you are writing a new or migrating a previous application, use the following classes to ensure that the string is in Unicode format:

Use the following methods with the above Unicode classes:

bindWith
Replaces strings within the Unicode string. If the arguments are Strings, the Strings are converted to Unicode before being bound into the Unicode string.

bindWith: with:
Replaces strings within the Unicode string. If the arguments are Strings, the Strings are converted to Unicode before being bound into the Unicode string.

ulcAsLocalString
Converts the Unicode string to a String in the local codepage

ulcAsUnicodeString
Tests if the string is a Unicode string. If the string is not a Unicode string, converts the string to a Unicode string.

To convert Strings and DBStrings to Unicode, use the #ulcAsUnicodeString method.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]