Syntax 1 Convert a string to a blob
Description
Converts a string to a blob datatype.
Syntax
|
1 |
<span>Blob</span> ( <span>text</span> {, <span>encoding</span>} ) |
|
Argument |
Description |
|---|---|
|
text |
The string you want to convert to a blob |
|
encoding |
Character encoding of the resulting blob.
|
Return Values
Blob. Returns the converted string in
a blob with the requested encoding, if specified. If text is null, Blob returns null.
Usage
If the encoding argument is not provided, Blob converts
a Unicode string to a Unicode blob. You must provide the encoding argument
if the blob has a different encoding.
Examples
This example saves a text string as a Unicode blob:
|
1 |
<span>Blob</span> B |
|
1 |
B = <span>Blob</span>("Any Text") |
This example saves a text string as a blob with UTF-8
encoding:
|
1 |
<span>Blob</span> Blb |
|
1 |
Blb = <span>Blob</span>("Any Text", EncodingUTF8!) |
See Also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest