NewObject
Description
Creates a new object of the specified type.
Syntax
|
1 |
NewObject(pbclass cls) |
|
Argument |
Description |
|---|---|
|
cls |
The type of object or structure instance to be |
Return value
pbobject of the given class or structure.
Examples
|
1 2 3 4 5 6 7 8 9 10 11 |
pbclass cls; pbobject ex; pbgroup group; group = session-> FindGroup ("user_exception", pbgroup_userobject); if (group==NULL) return; cls = session->FindClass(group, "user_exception"); if (group==NULL) return; ex = session->NewObject(cls); |
Usage
The returned object’s life cycle is restricted to the current
frame unless AddGlobalRef is called on the object.
See also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest