|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > Variable Definitions and Operations > Variable Commands |
MiniRobotLanguage (MRL)
VAU. - Variable Unicode
Assign or Append binary or Unicode Characters to a Variable

In a normal mode of operation, you will feed this command with hexadecimal numbers, with spaces or without spaces. You can also append something using this, and this way you get hexadecimal characters into a variable, as you can see in this example.

In the second mode of operation that happens, if you give the command characters that are outside of the hex code character range, it will treat it as a unicode text. This is what you see here.
Intention
This command has three modes of operation. In the normal usage, you can give it hexadecimal numbers, like you see in the example, and it will generate a unicode string containing the characters of these numbers.
1. This means if you give it a 0a, 0d, you will get a carriage return line feed in the string.
So this will generate a unicode variable from numbers.
2. It will also understand other number formats, as you can see in the picture.
3
. If you give it letters that are outside the range of these letters, then the command will assume that it is just a normal text and will treat it as a unicode text.
Syntax
VAU.P1=[P2]
Parameter Explanation
P1 - (optional) Depending on the mode of operation and the operator context, this is what is assigned or appended to the variable. There are two modes of operation.
The first mode is you can give it hexadecimal numbers. The second mode is you can give it a text. This is the case when you have letters that are outside of the range of hexadecimal numbers. In that case, it will be treated as a Unicode text.
Example
'***********************************
' VAU.-Sample
'***********************************
VAU.$$UNI=ff fe 3e d8 37 dd 0d 20 42 26 0f fe 57 00 65 00
VAU.$$UNI+ 6e 00 6e 00 b4 00 73 00 20 00 73 00 6f 00
PRT.$$UNI|c
MBX.!
END.
Remarks
-
Limitations:
-
See also:
• ATU. - Convert ANSI to UNICODE