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

FormCheckBoxInsert – PB Docs 2022 – PowerBuilder Library

FormCheckBoxInsert – PB Docs 2022

FormCheckBoxInsert

PowerScript function

Description

Inserts a checkbox type form field at the current text input
position in a RichTextEdit control. Users can click the checkbox form
field to change the field value if necessary.

Applies to

RichTextEdit control

Syntax

Argument

Description

checked

The status of the checkbox when it is initially
inserted.

checkedChar

The character to show in the field if the checked status
is true. You can only pass one character to the argument, for
example, T.The default value is 0x25A0, which is
checkbox_field_checked.png.

uncheckedChar The character to show in the fieldif the checked status is
false. You can only pass one character to the argument, for
example, T. The default value is 0x25A1, which is
checkbox_field_unchecked.png.

Return value

Integer.

Returns a value greater than 0 if it succeeds and this value
represents the unique ID of the form field that was successfully inserted.
If any argument’s value is null, returns null. Returns -1 if an error
occurs.

If the checkedchar or uncheckedchar argument is used but is not
assigned with a value, returns -1, and the form field is not
inserted.

Examples

This example inserts a checkbox form field which shows
checkbox_field_unchecked.png:

This example inserts a checkbox form field which shows the
corresponding character (Y or N):


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