GetDesc Method (Cursor)

Build 1501 on 14/Nov/2017  This topic last edited on: 23/Mar/2016, at 12:25

Description

Returns a TxtPosDesc object describing the text content to the immediate right of the I-beam.

Syntax

Dim objDesc as TxtPosDesc = objcur.getdesc

object

Required. Object name, returned by Text.GetCursor(...).

Example

Are we in notes mode?

dim objCur as Cursor = Text.GetCursor(modeSrcOn, cposcursor, false)

dim objdesc as TxtPosDesc = objcur.getdesc

If objDesc.GetType = tptText And objDesc.GetRemCode <> 0 Then

 msgbox ("Yes")

Else

 msgbox ("No")

End If

For the meaning of the standard constants see Constants related to Cursor and TxtPosDesc object.