IF _SCREEN.FormCount > 0 LOCAL TCUR_FORM FOR m.TCUR_FORM = 1 TO ALEN( _SCREEN.Forms ) && <- error line && some code here NEXT ENDIF