Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Artful Two for Clipper 5.0 - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

Syntax

READ_MEMO( [ cFld_name[, nTr[, nTc[, nBr[, nBc, ;
           [, lMay_edit[, xcUdf [, cHdr ;
           [, nLine_len[, nRow[, nCol[, nColor ;
           [, lSavescr[, lIsmemo ]]]]]]]]]]]]]] )

Purpose

Pop up a window to edit a memo or any text, restore the screen afterwards.
While the window is up, Alt M moves it, Alt S sizes it and Alt T makes it
tiny for easy movement. If altered, the coordinates are saved to the
current HELP record if the user is in HELP, or to the current DICT record
if DICT is open.

Arguments

     cFld_name -- field to display/edit

     nTr, nTc, nBr, nBc -- window coordinates

     lMay_edit -- if passed, whether to allow editing, else .F.

     xcUdf -- if passed, name of custom memoedit udf

     cHdr -- if passed, string or array of them for window heading

     nLine_len -- if passed, line length in memo window

     nRow -- if passed, row on which to place memo menu, else 2

     nCol -- if passed, column at which to place memo menu, else 40

     nColour -- if passed, SYSCOLOR(), else 1

     lSavescr -- if passed, whether to restore user's screen, else .T.

     lIsmemo -- if passed, whether to strip eols after edit; defaults to
                whether field is a DBF memo field.

Setup

A table must be open. If no variable name is passed, and if memo fields
exist in the table, a selection menu of their names is created.

Example

     READ_MEMO()               && menu the memo fields
     READ_MEMO( "NOTES" )      && edit the Notes field

Returns

.T. if changes were made and saved, else .F.

Side Effects

If a memo field is edited, it will be written to.

Artful Calls

CENTRE, DICTFIND, DRAW_BOX, IS_OPEN, MCOUNT, MEMO_HELP, MEMOPOS, PROPER,
PULL_OPEN, SYSCOLOR, PUSH/POP_SCR, POP_MSG, WMOVE, WSIZE, WTINY

Source Files

AA_RMEMO.PRG, AM_RMEMO.PRG

See Also: POP_MSG() WMOVE() WSIZE() WTINY() MEMO_HELP()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson