I need to create browse or grid dynamically, but, how to paste parent window name to definition?
I've tried something like this:
Code: Select all
function CreateTable
LOCAL cParentWindowName
cParentWindowName:= THISWINDOW.NAME
DEFINE BROWSE Table_Results
PARENT &cParentWindowName
WIDTH 500
HEIGHT 360
HEADERS {"nag"}
WIDTHS {100}
WORKAREA TRAFO
FIELDS {"KOD_STACJI"}
END BROWSE
Code: Select all
Public &mVar. := k
Parent window is created from definition stored in DBF file, so it's name is created while program's run.