XPRBsetvarlink
XPRBsetvarlink |
Purpose
Synopsis
int XPRBsetvarlink(XPRBvar var, void *link);
Arguments
var
|
Reference to a BCL variable
|
link
|
Pointer to an interface object
|
Return value
0 if function executed successfully, 1 otherwise.
Example
Set the interface pointer of variable
x1 to
vlink:
XPRBprob prob; XPRBvar x1; myinterfacetype *vlink; ... x1 = XPRBnewvar(prob, XB_UI, "abc3", 0, 100); XPRBsetvarlink(x1, vlink);
Further information
This function sets the interface pointer of a variable to the indicated object. It may be used to establish a connection between a variable in BCL and some other external program.
Related topics