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

Using DataWindow expressions as property values – PB Docs 126 – PowerBuilder Library

Using DataWindow expressions as property values – PB Docs 126

Using DataWindow expressions as property values

When a DataWindow object property’s value can be
an expression, you can make the control’s appearance or
other properties depend on other information in the DataWindow.

A DataWindow expression can include:

  • Operators

  • The names of controls within the DataWindow, especially
    column and computed field names

  • DataWindow expression functions. Some functions,
    such as IsRowNew, refer to characteristics of
    an individual row

  • User-defined functions

Different formats for the expression

When you assign an expression in the painter, you specify
just the expression:

When you assign an expression in code, you specify a default
value, a tab, and the expression:

Examples

In the painter

This expression for a column called emp_lname is
applied to the Background.Color property. It causes the name’s
background to be light gray (15790320) if the current row (person)
uses the day care benefit. If not, the background color is set to
white:

In code

The expression assigned to the Background.Color property includes a
default value. Nested quotes complicate the syntax:

PowerBuilder

JavaScript


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