| **Navigation:**  [[introduction.htm|Language Reference]] > 13 - Built-in Functions  > ====== FIRSTFIELD (return first window control) ====== | [[fileerrorcode return file driver error code number .htm|{{btn_prev_n.gif|Previous page}}]][[introduction.htm|{{btn_home_n.gif|Return to chapter overview}}]][[fixformat fix a dynamic file .htm|{{btn_next_n.gif|Next page}}]] | | || {{newc7.jpg|NewC7.jpg}} **FIRSTFIELD( )** {{blk2blue.jpg|blk2blue.jpg}} The **FIRSTFIELD** procedure returns the lowest 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 | **Example:** **DISABLE(****FIRSTFIELD()****,LASTFIELD())   !Dim all control fields** **See Also:** [[lastfield return last window control .htm|LASTFIELD]] [[prop_nextfield.htm|PROP:NextField]]