Embedding the PBVM in a C++ application – PB Docs 150
Embedding the PBVM in a C++ application Many PowerBuilder users have developed sophisticated custom class user objects that handle intensive database operations or other functionality. Such objects can already be used in external applications. However, limitations on the use of some datatypes and of overloaded functions, as well as other coding restrictions, diminishes the value…
PowerDesigner Integration – PB Docs 150
PowerDesigner Integration About this chapter PowerBuilder provides a plug-in interface that you can use to link a PowerBuilder target to a PowerDesigner object-oriented model. This chapter describes how to enable the plug-in and use it to generate or reverse-engineer PowerBuilder targets and objects. Contents Topic About PowerDesigner and the PowerDesigner plug-in What is an OOM?…
NewDateTime – PB Docs 150
IPB_Session interface: NewDateTime method Description Creates a new pbdatetime data object. Syntax
|
1 |
NewDateTime() |
Return Values pbdatetime. Examples This example tests whether a date/time value exists, and, if it does not, it creates a new pbdate object and sets its value to the beginning of January, 1900:
|
1 |
if (ci->pArgs->GetAt(i)->IsNull())<br>{<br>   pArguments[i].datetime_val=Session-><span>NewDateTime</span>();<br>   Session->SetDateTime(pArguments[i].datetime_val,<br>      1900, 1 , 1, 1, 1, 1); // Datetime:<br>                             // 1900-01-01 01:01:01<br>}<br>else<br>{<br>   pArguments[i].datetime_val = <br>      ci->pArgs->GetAt(i)->GetDateTime();<br>} |
Usage The initial value is 1900-1-1 0:0:0.0. See…
Step 6: Build a PBX – PB Docs 150
Step 6: Build a PBX Using your C++ development tool or the command line, build a PBX from your C++ classes. When you compile and link the C++ code, verify the following: The include directory for the PBNI SDK, typically PowerBuilder 15.0SDKPBNIinclude, must be in your include path. If you use any helper classes, make…
PBX_CreateVisualObject – PB Docs 150
Exported methods: PBX_CreateVisualObject method Description Creates a new instance of a visual PowerBuilder extension object. Syntax
|
1 |
PBX_CreateVisualObject(IPB_Session* <span>pbsession</span>, pbobject <span>pbobj</span>, LPCTSTR <span>xtraName</span>, IPBX_NonVisualObject   **<span>obj</span>)<span>[Unmapped Entity: middot ]</span> |
Argument Description pbsession This IPB session pbobj The name of a pbobject corresponding to the PowerBuilder extension object to be created xtraname The name of the PowerBuilder native class in lowercase obj The PowerBuilder extension object to be…
GetColumnMetaData – PB Docs 150
IPB_ResultSetAccessor interface: GetColumnMetaData method Description Obtains a column’s metadata. The column number of the first column is 1. Memory must be allocated for columnName before this function call. The pointer values can be null. Syntax
|
1 |
GetColumnMetaData (unsigned long <span>columnNum</span>, LPTSTR <span>columnName</span>, pbvalue_type* <span>type</span>, unsigned long* <span>width</span> ) |
Argument Description columnNum The number of the column for which you want to obtain metadata columnName The name of…
About exchanging data with PowerBuilder – PB Docs 150
About exchanging data with PowerBuilder You can use the IPB_Session interface or the IPB_Value and IPB_Arguments interfaces to exchange data between PowerBuilder and PBNI. The IPB_Session interface contains many virtual functions that enable the C++ code in an extension to interact with the PBVM. The IPB_Value and IPB_Arguments interfaces contain methods that you can use…
PushLocalFrame – PB Docs 150
IPB_Session interface: PushLocalFrame method Description Pushes a local reference frame onto the current native method stack frame. A local frame is analogous to a scope in C++. Syntax
|
1 |
PushLocalFrame() |
Return Values None. See Also PopLocalFrame RemoveLocalRef Document get from Powerbuilder help Thank you for watching.
SetFieldToNull – PB Docs 150
IPB_Session interface: SetFieldToNull method Description Sets the value of the specified field to null. Syntax
|
1 |
SetFieldToNull(pbobject <span>obj</span>, pbfield <span>fid</span>) |
Argument Description obj A valid object handle fid The field ID of the specified object Return Values None. See Also GetFieldID GetFieldType Get<type>Field GetNumOfFields IsFieldArray IsFieldNull IsFieldObject Set<type>Field Document get from Powerbuilder help Thank you for watching.
SoapConnection – PB Docs 150
SoapConnection Description The SoapConnection class is used to create a proxy object for a specific Web service and set options for the connection. Methods SoapConnection has the following methods: AddToBypassList SetOptions CreateInstance SetProxyServer DynamicCast SetProxyServerOptions RemoveAuthentication SetSoapLogFile RemoveBypassList SetTimeout SetBasicAuthentication SetUseDefaultProxySetting SetBypassProxyOnLocal UseConnectionCache SetClientCertificateFile UseIntegratedWindowsAuthentication The GenerateProxy method is currently not implemented. Document get from…