IPB_Value interface:
GetType method
Description
Returns the datatype of a single data item or array.
Syntax
GetType()
Return Values
pbuint
Examples
ArgsType = ci->pArgs->GetAt(i)->GetType();
switch (ArgsType)
{
case pbvalue_int:
if (ci->pArgs->GetAt(i)->IsNull())
pArguments[i].int_val=1;
else
pArguments[i].int_val =
ci->pArgs->GetAt(i)->GetInt();
break;
...
Usage
If the IPB_Value instance contains an object or structure, GetType returns
the class ID of the data. Otherwise, it returns a simple datatype
defined in the list of pbvalue_type enumerated
types.
See Also