FOREACH loForm INTHIS.FormList
IFUPPER(loForm.NAME) == tcName AND UPPER(loForm.BASECLASS) = 'FORM'
llFound = .T.
*!* BAM! As soon as the next line executes, *!* loForm is no longer an object!EXITENDIFENDFOR
>
Am I missing something - I wouldn't expect loForm to be in scope outside of the FOR EACH - ENDFOR construct..