ToAnsi
PowerScript function
Description
Converts a character string to an ANSI blob.
Syntax
1 |
ToAnsi ( string ) |
Argument |
Description |
---|---|
string |
A character string you want to convert to an ANSI |
Return value
Blob.
Returns an ANSI blob if it succeeds and an empty blob if it
fails.
Usage
The ToAnsi function converts a Unicode character string to an ANSI
blob. ToAnsi has the same result as Blob(string, EncodingANSI!) and will
be obsolete in a future version of PowerBuilder.
Unicode file format
Unicode files sometimes have two extra bytes at the start of the
file to indicate that they are Unicode files. If you are opening a
Unicode file in stream mode, skip the first two bytes if they are
present.
See also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest