Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

A binary value based on the offset, type and size.

See also

ANSI_Unicode()Unicode_ANSI()GetByteSize()

Example

Code Block
/* This example takes the following steps:
1. Converts an ANSI string to UNICODE
2. Determines the length of the string
3. Extracts the first 10 characters from the string
4. Converts the UNICODE string to ANSI
*/
 
ansi_string = "Hello World"
* Convert the string to Unicode
unicode_string = ANSI_Unicode( ansi_string : \00\ )
uniLength = GetByteSize( unicode_string )
val = GetBinaryValue( unicode_string, 1, CHAR, 10 )
newString = Unicode_ANSI( val )