In most cases, your user functions receive a pointer to the current form as one of their parameters. There are a few exceptions: keyloop and key filter functions, and event functions installed in the VIEWETP and HELPETP event tables, for example, do not get a pointer to the current form. If, for this reason, you cannot get the pointer to the current form from the parameters passed to your function, you can get it by using the current form pointer function curfmp():
|
curfmp() returns a pointer to the form being processed.
If the form in question is not the current form, get a pointer to it by using the form name, as described below.
If you need a pointer to the current window, you can use the current window pointer function curwnp():
|
curwnp() returns a pointer to the current window.