ToUnicode

Description

Converts a character string to a Unicode blob.

Syntax

ToUnicode ( string )

Argument

Description

string

A character string you want to convert to a Unicode blob

Returns

Blob. Returns a Unicode blob if it succeeds and an empty blob if it fails.

Usage

In PocketBuilder, the ToUnicode function converts a Unicode character string to a blob and has the same result as Blob(string). In PowerBuilder, the ToUnicode function converts an ANSI character string to a Unicode blob.

NoteUnicode file format Unicode files sometimes have two extra bytes at the start of the file to indicate that they are Unicode files.

Examples

Example 1

This example illustrates the use of the ToUnicode function to convert a string entered in a MultilineEdit control into a Unicode blob:

blob lblb_text

string ls_native


ls_native = mle_entry.Text

lblb_text = ToUnicode(ls_native)

See also