ASAP 1.1 Hybrid Manual

HP NonStop ASAP Hybrid Manual 529729-004
Page 4-20
Differences from the NonStop ASAPX API
A different range of values and possible errors is returned.
Example
short ErrorDetail; // Error detail from call
short ReturnValue; // Return value from call
struct asap_list List; // asap_list struct for call
List.idx[0].data_item = 5; // First data item is 5
List.idx[0].val = 1234LL; // Value = 1234
List.idx[0].math = ASAP_MATH_ADD; // Add it to the data item
List.idx[1].data_item = 9; // Second data item is 9
List.idx[1].val = 2LL; // Value = 2
List.idx[1].math = ASAP_MATH_REPLACE_NUMBER; // Replace the value in data item
ReturnValue = ::asap_updatelist(Handle, // Handle from asap_register
2, // 2 items in the list
&List, // Address of the asap_list struct
&ErrorDetail); // Returned error information