Object_CharToString
Using of command
Function create string form characters sets in function Object_ToChar. Result of this function can be string variable String_0 to String _9 or
floating number in Variale_0 to Variable_99.
Example picture
Example picture displays numbers. We will used it in explaination of this function.
We expect that each number was read as object and character of each number is same as
character represented of each number.
Commands parameters
Command has 5 parameters:
- String direction: You need select direction of characters reading to string.
It can be select:
- Left->Right : If you select this option characters will be read from left to right line started from
top line ended in bottom line. In our example result string will be:
1234567890
11823111
- Right->Left : If you select this option characters will be read from right to left line started from
top line ended in bottom line. In our example result string will be:
0987654321
11132811
- Top->Bottom : If you select this option characters will be read from top to bottom column started from
left column and end to right column. In our example result string will be:
11
21
38
42
53
61
71
81
9
0
- Bottom->Top : If you select this option characters will be read from bottom to top column started from
left column and end to right column. In our example result string will be:
11
12
83
24
35
16
17
18
9
0
- Line width: Number describe width of line.It means that object will be in same line if y-coordinates (in direction Left->Right or Right->Left)
or x-cordinates (in direction Top->Bottom or Bottom->Top)of objects has maximal deviation sets in this number .
- Space size: This number sets space character to string if x-coordinates between 2 objects are more than this number
- Space object: It defines space object. If this object is found function add space instead of this object to output string
- result to: It can be select where result will be saved. If yo select option Variable_0 to Variable_99 string will be transfered to floating number
Error codes
- Error code -11:Line width is negative. It must be positive number
- Error code -12:Space size is negative. It must be positive number
- Error code -13:Bad array position in String variable
- Error code -14:Bad array position in Variable.
- Error code -15:Error in function SortObjectFunction.