Chapter Contents

Previous

Next
Text Viewer: _getInfo

Text Viewer: _getInfo



Returns information about where the user clicked in the viewer


Syntax
Details
Example

Syntax

CALL NOTIFY (viewer-name, '_getInfo', row, col<, text<, text-len><, word><, word-len><, hotspot>>);

Argument Type Description
row
N returns the number of the selected row within the file
col
N returns the number of the selected column within the file
text
C returns the entire line of selected text
text-len
N returns the length of the selected line of text
word
C returns the word selected
word-len
N returns the length of the selected word
hotspot
C returns the name of the registered hotspot clicked on


Details

By default the returned word is the space-delimited text clicked on. To control what delimiter is used to return the word, see the _setDelimiters method for this class.


Example

_getInfo returns information about the location of the user's click:

call notify('textview', '_get_info_',
             row, col, text,
             textl, word, wordl);

In this example, the variables contain these values:
ROW=3
COL=2
TEXT='Third row of text'
TEXTL = 17
WORD = 'Third'
WORDL = 5


Chapter Contents

Previous

Next

Top of Page

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