# 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:

1. String direction: You need select direction of characters reading to string. It can be select:
   1. 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

   2. 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

   3. 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

   4. 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

2. 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 .
3. Space size: This number sets space character to string if x-coordinates between 2 objects are more than this number
4. Space object: It defines space object. If this object is found function add space instead of this object to output string
5. 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

1. Error code -11:Line width is negative. It must be positive number
2. Error code -12:Space size is negative. It must be positive number
3. Error code -13:Bad array position in String variable
4. Error code -14:Bad array position in Variable.
5. Error code -15:Error in function SortObjectFunction.