|Navigation: Language Reference > 13 - Built-in Functions > ====== LASTFIELD (return last window control) ======|
The LASTFIELD procedure returns the highest field number in the currently active window (or REPORT) as specified by SETTARGET. This does not include any controls in a TOOLBAR or MENUBAR.
|Return Data Type:||SIGNED|
DISABLE(FIRSTFIELD(),LASTFIELD()) !Dim all control fields