
Can't reference on forms properties from another form
Hi Keith,
You are going to have to write a routine that parses the _Screen.forms[]
collection to find "form1" and return an object reference to it. A lot of
people use the Caption property to base the search on. You can also use the
Name property. The code would look something like this:
lparameter lcformname
local loform
for each loform in _Screen.forms
if loform.Name = lcformname then && the THEN is optional
return loform
endif
endfor
Larry Miller
Quote:
> When I try that, I get an error message:
> Unknown member FRMCUSTLOOK.
> (FRMCUSTLOOK is Form1)
> ???????