SelectedStart  SelectRow

Chapter 9: Methods for the DataWindow Control

SelectedText

Description

Obtains the selected text in the edit control of a DataWindow control.

Syntax

string dwcontrol.SelectedText ( )

Argument

Description

dwcontrol

A reference to a DataWindow control. The method reports the selected text in the edit control over the current row and column.

Returns

Returns the selected text in dwcontrol. If there is no selected text or if an error occurs, SelectedText returns the empty string (""). If dwcontrol is NULL, the method returns NULL.

Usage

NoteUsing with other PocketBuilder controls For use with other controls, see SelectedText in the PowerScript Reference.

Examples

Example 1

If the text in the edit control of the DataWindow dw_rpt is James B. Smith and James B. is selected, these statements set the value of the string variable to James B:

string ls_emp_fname

ls_emp_fname = dw_rpt.SelectedText()

See also





Copyright © 2004. Sybase Inc. All rights reserved. SelectRow

View this book as PDF