en:software:qview:qview_6:qcl_library:vr10sbytoasc

This translation is older than the original page and might be outdated. See what has changed.

VR10SByToAsc

V = Variables

R = Reading functions

SIGNED BYTE —→ ASCII

The VR10SByToAsc function converts a Signed Bytes variable type (byte with sign) in an Ascii variable type.

VR10SByToAsc (value, index, array, errcode)

Parameters:

IN/OUTVARIABLE TYPEEXAMPLE NAMEDIM
IN GLOBAL value B Data value to convert
IN GLOBAL index L Index of the array element to start the “deposit” of the converted data
OUT ARRGBL array B Array containing the converted data (must be declared at least “index” elements)
OUT GLOBAL errcode F Variable that indicates a possible error on the function

After calling the function, 'errcode' can take certain values, the meaning of these values is summarized below:
0: No error

Example

Transforms the value 12 (signed byte) in a ASCII value

value = -12
index = 1
 
VR10SByToAsc (value, index, array, errcode)
 
;On the array will be :
; array[1] = 48
; array[2] = 67

Note

  • Last modified: 2019/08/29 17:01