In the User Function window:
| Return Type: |
Single |
| Input Parameters: |
long a; OUTPTR b; |
| Output Parameters: |
char z[30]; |
In the state table:
STRING func6_char, NUMBER send3_long;
AssignData(send3_long, "ASSIGN", "2") ;
SendData("CUSTOM_SERVER", "TEST_PARMS", 30, "TEST_PARMS_func6", send3_long) ;
ReceiveData("CUSTOM_SERVER", "TEST_PARMS", 30, "TEST_PARMS_func6",
func6_char) ;
So, using the data in SendData (above), func6_char in ReceiveData has a value of "THIS WORKED".
Example code
int TEST_PARMS_func6 (long a, char **b)
{
if (a == 2) {
strcpy (TP_buffer, "THIS WORKED");
*b = TP_buffer;
return (0);
} else {
return (-1);
} /* endif */
}