Get<type>SharedVar – PB Docs 2019
Get<type>SharedVar Description A set of methods that gets the value of a shared variable of a specific datatype. Syntax
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
GetArraySharedVar ( pbgroup group, pbfieldID fid, pbboolean& isNull ) GetBlobSharedVar ( pbgroup group, pbfieldID fid, pbboolean& isNull ) GetBoolSharedVar ( pbgroup group, pbfieldID fid, pbboolean& isNull ) GetByteSharedVar ( pbgroup group, pbfieldID fid, pbboolean& isNull ) GetCharSharedVar ( pbgroup group, pbfieldID fid, pbboolean& isNull ) GetDateSharedVar ( pbgroup group, pbfieldID fid, pbboolean& isNull ) GetDateTimeSharedVar ( pbgroup group, pbfieldID fid, pbboolean& isNull ) GetDecSharedVar ( pbgroup group, pbfieldID fid, pbboolean& isNull ) GetDoubleSharedVar ( pbgroup group, pbfieldID fid, pbboolean& isNull ) GetIntSharedVar ( pbgroup group, pbfieldID fid, pbboolean& isNull ) GetLongSharedVar( pbgroup group, pbfieldID fid, pbboolean& isNull ) GetLongLongSharedVar( pbgroup group, pbfieldID fid, pbboolean& isNull ) GetObjectSharedVar ( pbgroup group, pbfieldID fid, pbboolean& isNull ) GetRealSharedVar ( pbgroup group, pbfieldID fid, pbboolean& isNull ) GetStringSharedVar ( pbgroup group, pbfieldID fid, pbboolean& isNull ) GetTimeSharedVar ( pbgroup group, pbfieldID fid, pbint value ) GetUintSharedVar ( pbgroup group, pbfieldID fid, pbboolean& isNull ) GetUlongSharedVar ( pbgroup group, pbfieldID fid, pbboolean& isNull ) |
Argument Description group The group whose shared variable is to be accessed fid The field ID of the shared variable isNull Indicates whether the variable is null Return value A predefined PBNI datatype that corresponds…
Syntax 1: For menus – PB Docs 2019
Syntax 1: For menus Description Occurs when the user chooses an item on a menu. Event ID Event ID Objects None Menu Arguments None Return Values None (do not use a RETURN statement) Usage If the user highlights the menu item without choosing it, its Selected event occurs. If the user chooses a menu item…
Create a second DataWindow object – PB Docs 2019
Create a second DataWindow object Contents Select the data source and style Select the table and columns Define a retrieval argument Specify a WHERE clause View the DataWindow in the DataWindow painter Save the DataWindow object Where you are Create and preview a new DataWindow object Save the DataWindow object Make cosmetic changes to the…
Clone – PB Docs 2019
Clone Description Creates and returns a clone of the current PBDOM_CHARACTERDATA. Syntax
|
1 |
pbdom_chardata_name.Clone(boolean bDeep) |
Argument Description pbdom_chardata_name The name of a PBDOM_CHARACTERDATA. bDeep A boolean specifying whether a deep or shallow clone is returned. Values are true for a deep clone and false for a shallow clone. This argument is currently ignored. Return value PBDOM_OBJECT. Throws…
Resizeable – PB Docs 2019
Resizeable property (DataWindow object) Description Whether the user can resize the specified control. Applies to Button, Column, Computed Field, Graph, GroupBox, Line, OLE, Oval, Picture, Rectangle, Report, RoundRectangle, TableBlob, and Text controls Syntax PowerBuilder dot notation:
|
1 |
dw_control.Object.controlname.Resizeable |
Describe and Modify argument:
|
1 |
"controlname.Resizeable { = value }" |
Parameter Description controlname The control within the DataWindow whose Resizeable setting you want…
GetException – PB Docs 2019
GetException Description Obtains the current thrown exception object. Syntax
|
1 |
GetException () |
Return value pbobject. Examples This code gets the current exception object, clears the exception, and gets the class of the exception object:
|
1 2 3 4 5 6 |
pbclass cls; pbobject ex; ... ex = session-> GetException(); session-> ClearException(); cls = session-> GetClass(ex); |
See also ClearException HasExceptionThrown Document get from Powerbuilder help Thank you for watching.
SetDocument – PB Docs 2019
SetDocument Description Sets the owning PBDOM_DOCUMENT of the current PBDOM_DOCTYPE. Syntax
|
1 |
pbdom_doctype_name.SetDocument(pbdom_document pbdom_document_ref) |
Argument Description pbdom_doctype_name The name of a PBDOM_DOCTYPE object pbdom_document_ref A PBDOM_DOCUMENT object to be set as the owner document of this PBDOM_DOCTYPE object Return value PBDOM_DOCTYPE. The current PBDOM_DOCTYPE modified to be the DOCTYPE of the referenced PBDOM_DOCUMENT. Throws EXCEPTION_PBDOM_OBJECT_INVALID_FOR_USE — if…
OLE DB EXECUTE – PB Docs 2019
OLE DB EXECUTE Database stored procedures that perform only updates and do not return a result set are handled in much the same way as procedures that return a result set. The only difference is that after the EXECUTE procedure_name statement executes, no result set is pending, so a CLOSE statement is not required. Using…
SetSharedVarToNull – PB Docs 2019
SetSharedVarToNull Description Sets the value of the specified shared variable to null. Syntax
|
1 |
SetSharedVarToNull(pbgroup group, pbfield fid) |
Argument Description group The group to which the shared variable belongs fid The field ID of the shared variable Return value None. Examples This example tests the IsSharedVarNull and SetSharedVarToNull functions:
|
1 2 3 4 5 6 7 8 |
curGroup = session -> GetCurrGroup(); cls = session -> GetClass(myobj); fid = session -> GetSharedVarID(curGroup, "i_svar"); if (session -> IsSharedVarNull(curGroup, fid)) session -> SetIntSharedVar(curGroup, fid, 1); else session -> SetSharedVarToNull(curGroup, fid); |
See also Get<type>SharedVar GetSharedVarID GetSharedVarType IsSharedVarArray IsSharedVarNull IsSharedVarObject Set<type>SharedVar…
UTF8 – PB Docs 2019
UTF8 database parameter Description The UTF8 database parameter specifies whether the database server you are accessing will handle conversion between the character sets on the client and server when they are different. When to specify UTF8 You must specify a value for UTF8 before connecting to the database in PowerBuilder. Applies to ASE and SYC…