Get<type>SharedVar

PowerBuilder Native Interface

IPB_Session interface:

Get<type>SharedVar method

Description

Syntax

GetArraySharedVar ( pbgroup group, pbfieldID fid, pbboolean& isNull ) 
GetBlobSharedVar ( pbgroup group, pbfieldID fid, pbboolean& isNull ) 
GetBoolSharedVar ( pbgroup group, pbfieldID fid, pbboolean& isNull ) 
GetByteSharedVar ( pbgroup group, pbfieldID fid, pbboolean& isNull ) 
GetCharSharedVar ( pbgroup group, pbfieldID fid, pbboolean& isNull ) 
GetDateSharedVar ( pbgroup group, pbfieldID fid, pbboolean& isNull ) 
GetDateTimeSharedVar ( pbgroup group, pbfieldID fid, pbboolean& isNull ) 
GetDecSharedVar ( pbgroup group, pbfieldID fid, pbboolean& isNull ) 
GetDoubleSharedVar ( pbgroup group, pbfieldID fid, pbboolean& isNull ) 
GetIntSharedVar ( pbgroup group, pbfieldID fid, pbboolean& isNull ) 
GetLongSharedVar( pbgroup group, pbfieldID fid, pbboolean& isNull ) 
GetLongLongSharedVar( pbgroup group, pbfieldID fid, pbboolean& isNull ) 
GetObjectSharedVar ( pbgroup group, pbfieldID fid, pbboolean& isNull ) 
GetRealSharedVar ( pbgroup group, pbfieldID fid, pbboolean& isNull ) 
GetStringSharedVar ( pbgroup group, pbfieldID fid, pbboolean& isNull ) 
GetTimeSharedVar ( pbgroup group, pbfieldID fid, pbint value ) 
GetUintSharedVar ( pbgroup group, pbfieldID fid, pbboolean& isNull ) 
GetUlongSharedVar ( pbgroup group, pbfieldID fid, pbboolean& isNull ) 

Return Values

Examples

curGroup = session -> GetCurrGroup();
fid = session -> GetSharedVarID(curGroup, "i_svar");
if (fid == 0xffff)
{
   MessageBox(NULL, "Illegal fid!", "default", MB_OK);
   return;
}
i_val = session-> GetIntSharedVar(curGroup, fid,
   isNull);
session-> SetIntSharedVar(curGroup, fid, i_val+1);

See Also