Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

DWObject variables in PowerBuilder – PB Docs 150 – PowerBuilder Library

DWObject variables in PowerBuilder – PB Docs 150

DWObject variables in PowerBuilder

In PowerBuilder, you can get better performance by using a
DWObject variable to resolve the object reference in a DataWindow
property or data expression. Evaluating the reference once and reusing
the resolved reference is more efficient than fully specifying the
object reference again.

This technique yields the most benefit if your application
uses compiled code or if you are using a DataWindow expression in
a loop.

For example, this code is not optimized for best performance,
because the fully specified data expression within the loop must
be resolved during each pass:

This code has been optimized. The reference to the control
within the DataWindow (emp_salary) is resolved once before
the loop begins. The reference stored in the DWObject variable is
reused repeatedly in the loop:

note.png PowerBuilder DWObject versus data

In a data expression for a column that refers to one item,
the brackets for the row index identify the expression as a data
expression (for information, see “Syntax for one or all data
items in a named column”
). However, if you assign the column
control to a DWObject variable, the brackets incorrectly signify
an array of objects. Therefore you must include a buffer name or
data source to specify that you want data:


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x