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

UseCodeTable – PB Docs 2019 – PowerBuilder Library

UseCodeTable – PB Docs 2019

UseCodeTable

property for PowerScript controls

Applies to

EditMask controls

Description

When an EditMask control has been defined as a spin control (that
is, a control with up and down arrows the user clicks to cycle through
predefined values), a code table can be used to validate data.

The UseCodeTable property specifies whether the control uses a code
table to validate data.

Usage

In a painter

To specify use of a code table for an EditMask control:

  1. Select the Spin Control and Code Table check boxes on the Mask
    tab page of the control’s Properties view.

    An area appears on the lower half of the tab page where you can
    enter values for the code table.

  2. Specify Display Values and their corresponding Data
    Values.

    Use the Insert button to insert items within this list.

In scripts

The UseCodeTable property takes a boolean value. This example
specifies that the EditMask control should use its code table to validate
data:

You can specify the contents of the code table in scripts by using
the DisplayData property. Enter the Display values and their corresponding
Data values as a text string, with the Display and Data pairs separated by
tabs and the pairs separated by slashes. For example:


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