IPB_Session interface:
SetSharedVarToNull method
Description
Sets the value of the specified shared variable to null.
Syntax
SetSharedVarToNull(pbgroup group, pbfield fid)
Argument |
Description |
---|---|
group |
The group to which the shared variable belongs |
fid |
The field ID of the shared variable |
Return Values
None.
Examples
This example tests the IsSharedVarNull and SetSharedVarToNull functions:
curGroup = session -> GetCurrGroup();
cls = session -> GetClass(myobj);
fid = session -> GetSharedVarID(curGroup, "i_svar");
if (session -> IsSharedVarNull(curGroup, fid))
session -> SetIntSharedVar(curGroup, fid, 1);
else
session -> SetSharedVarToNull(curGroup, fid);