Converts a character string to a Unicode blob.
ToUnicode ( string )
Argument |
Description |
---|---|
string |
A character string you want to convert to a Unicode blob |
Blob. Returns a Unicode blob if it succeeds and an empty blob if it fails.
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.
Unicode file format Unicode files sometimes have two extra bytes at the start of the file to indicate that they are Unicode files.
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)