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

Clear – PB Docs 2019 – PowerBuilder Library

Clear – PB Docs 2019

Clear

method (DataWindows)

Description

Deletes selected text in the edit control over the current row and
column, but does not store it in the clipboard.

Applies to

DataWindow type

Method applies to

PowerBuilder

DataWindow control

Syntax

PowerBuilder

Argument

Description

dwcontrol

A reference to a DataWindow control

Return value

Returns the number of characters that Clear removed from dwcontrol.
If no text is selected, no characters are removed and Clear returns 0. If
an error occurs, Clear returns -1.

Usage

To select text for deleting, the user can use the mouse or keyboard.
You can also call the SelectText method in a script.

To delete selected text and store it in the clipboard, use the Cut
method.

PowerBuilder environment

For use with other PowerBuilder controls, see the section called “Clear” in PowerScript Reference.

Examples

If the user is editing the emp_name column in dw_emp and selects the
text Wilson, this statement clears Wilson from the edit control and
returns 6:

If the text in the edit control in dw_emp is Wilson, the first
statement selects the W and the second clears W from the edit control. The
return value would be 1:

See also

Clear in the section called “Clear” in PowerScript Reference

Cut

Paste

ReplaceText

SelectText


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