>Hi All,
>
>I'm using the following code block to access controls on my forms
>
> for each loobject in thisform.controls
>
> conditions...
>
> next loobject
>
>that works great until I get a form with a pageframe on it at which time
>it runs through condition block once and exits. I tried putting a loop in
>on seeing the pageframe but it just ignored it. Any ideas?
>
>Thanks
>Luke
Make this loop in a Method. Then call it:
thisform.MyLoop(thisform)
LPARAMETERS oContainer
LOCAL loobject
FOR EACH loobject IN oContainer.controls
IF INLIST(loobject.baseClass, "PageFrame", "Container", "Page", "Grid"....)
thisform.MyLoop(loobject)
ELSE
.... conditions...
ENDIF
NEXT loobject
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.