GetGlobalVarType
Description
Obtains the datatype of a global variable.
Syntax
|
1 |
GetGlobalVarType(pbfieldID fid) |
|
Argument |
Description |
|---|---|
|
fid |
The internal ID of the class instance |
Return value
pbuint.
A simple datatype defined in the list of pbvalue_type enumerated
types.
Examples
This code tests getting and setting a global integer variable
using the field ID fid:
|
1 2 3 4 5 6 |
fid = session -> GetGlobalVarID("i_gvar"); if (session -> GetGlobalVarType(fid) == pbvalue_int) { i_val=session -> GetIntGlobalVar(fid,isNull); session -> SetIntGlobalVar(fid,i_val+1); } |
See also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest