IPB_Session interface:
GetSharedVarID method
Description
Returns the internal ID of a shared variable.
Syntax
|
1 |
GettSharedVarID(pbgroup <span>group</span>, LPCTSTR <span>fieldname</span>) |
|
Argument |
Description |
|---|---|
|
group |
The group to which the shared variable |
|
fieldname |
The name of the field that contains the |
Return Values
pbfieldID. Returns 0xffff if the ID cannot
be found.
Examples
This code uses GetSharedVarID to
obtain the field ID of a shared variable, then uses that ID to obtain
the value of the variable:
|
1 |
curGroup = session -> GetCurrGroup();<br>fid = session -> <span>GetSharedVarID</span>(curGroup,"i_svar");<br>if (fid == 0xffff) <br>{<br>   MessageBox(NULL, "Illegal fid!", "default", MB_OK);<br>   return;<br>}<br>i_val = session -> GetIntSharedVar(curGroup, fid,<br>   isNull); |
See Also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest