Obtains the selected text in the edit control of a DataWindow control.
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 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.
Using with other PocketBuilder controls
For use with other controls, see SelectedText in the PowerScript
Reference.
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()
Copyright © 2004. Sybase Inc. All rights reserved. |
![]() |