Chapter Contents

Previous

Next
Text Entry: _getCurcol

Text Entry: _getCurcol



Returns the position of the text cursor relative to the first column of a text entry field


Syntax
Details
Examples

Syntax

CALL NOTIFY ('text-field-name, '_getCurcol', column);

Argument Description
column
returns the cursor position relative to the field's first column:


>0 the number of columns to the right of the field's first column plus 1


<=0 the absolute number of columns to the left of the field's first column minus 1


Details

The _getCurcol method returns the position of the text cursor (relative to the text entry field) when a user either clicks with the mouse or presses the RETURN or ENTER key. The cursor can be in the master region or in another object. If the text cursor is in an area to the left of the field's first column, the number returned is less than or equal to zero; if the cursor is in an area to the right of the first column, the number returned is positive.


Examples

_getCurcol returns the cursor position relative to the first column of the field TEXT1. TEXT1 has a length of 6.


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.