Xbasic

A5_MEMO_EDITOR2 Function

Syntax

Status as P = a5_memo_editor2(P fp [,C title [,L readonly [,N cursor_position ]]])

Arguments

Status

A dot variable containing the .insertion_point and .lastbutton elements.

fp

A dot variable with a .Text sub-element.

title

The title of the Memo Editor.

readonly

Logical. Optional. Default = .F. .T. = The text is read only. .F. = The text can be edited.

cursor_position

Optional. Default = 1. The initial cursor location. Numeric

Description

The A5_MEMO_EDITOR2() function displays the Memo Editor.

It returns the last button pressed and the location of the cursor. It is used to edit memos when user clicks the pencil icon, and returns 'lastbutton' and 'insertion_point'

Example 

dim ptr as P
dim ptr.text as C
dim answer as P
answer = a5_memo_editor2(ptr, "Editor")
? answer
= insertion_point = 9
lastbutton = "save"

Limitations

Desktop applications only.

See Also