GetSharedVarID
Description
Returns the internal ID of a shared variable.
Syntax
|
1 |
GettSharedVarID(pbgroup group, LPCTSTR fieldname) |
|
Argument |
Description |
|---|---|
|
group |
The group to which the shared variable |
|
fieldname |
The name of the field that contains the shared |
Return value
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 2 3 4 5 6 7 8 9 |
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); |
See also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest