Wiki Home

Set Window Of Memo


Namespace: VFP
SET WINDOW OF MEMO TO < Window >

An old, old SET command, decremented even in some Foxpro DOS versions.

The idea: DEFINE and ACTIVATE a WINDOW. Use SET WINDOW OF MEMO to open the memo edit window in the DEFINEd window. Open a table, browse to a memo field. Double click or use, say, Ctrl+PgUp to open the memo field. A new window will open up over the ACTIVATEd window with that window's characteristics.

CLOSE TABLES ALL
USE (HOME(1) + "Browser") SHARED NOUPDATE
DEFINE WINDOW Test FROM 1, 1 TO 20, 20 TITLE "Test" ZOOM FLOAT CLOSE GROW
SET WINDOW OF MEMO TO Test
ACTIVATE WINDOW Test
ACTIVATE SCREEN
GOTO 2 IN Browser
BROWSE FIELDS Name

** Open up memo edit window and memo contents should show up in the window.



Note that this is a *new* window. Drag the window to see the one behind it.

See Also: Function Set Window Of Memo
Contributors: Bill Anderson
Category Undocumented VFP Functions
( Topic last updated: 2016.06.21 04:52:12 PM )