This function retrieves the value of a string type output parameter in the array returned by the function which is executed by the Execute function. The first parameter is located at index 0.
Where the length of the string to be retrieved is longer than the specified length, the StringLn parameter is set to the length of the string, which is not retrieved.
Context
Windows client,
Windows server.
Parameters
NUM_BIN_4 |
MainIndex |
Index of the element in the main array |
Input parameter |
||||||||||||||||
NUM_BIN_4 |
Index |
Index of the element in the sub-array |
Input parameter |
||||||||||||||||
ALPHA(n) |
String |
Value of a string type output parameter |
Output parameter |
||||||||||||||||
NUM_BIN_4
|
StringLn |
Maximum length for the string variable |
Input/Output parameter |
||||||||||||||||
NUM_BIN_4 |
ReturnCode |
Return code for the operation Possible values:
|
Output parameter |
Example
NUM_BIN_4 ReturnCode
ALPHA(50) String1
ALPHA(100) String2
NUM_BIN_4 StringLn
/* Read both strings in the ReturnArr array which is described in the GetParameterSize function
StringLg = 50
CALL_DLL 'VaToCom' 'GetStringParameter' 1 0 String1 StringLn ReturnCode
StringLg = 100
CALL_DLL 'VaToCom' 'GetStringParameter' 1 1 String2 StringLn ReturnCode