Hi Will,
My apologies, I thought you were quoting my answer and pointing out an shortcoming - I've just re-read the thread and that's not the case at all.
mea culpaCheers,
Andrew
>Hi Will,
>
>I'm pretty sure I pointed this out in my original post
>
>Cheers,
>
>Andrew
>
>>
For each loObj in Thisform.Objects
>> If loObj.Enabled
>> ** Do whatever
>> Endif
>>Next
>>
>>This will only get your form level objects ie if you had a pageframe with objects on it they will be ignored - you would need to recurse into container objects to get everything.
>>
>>>Can someone, help me understand the for each command, (I think I am reading to much into it)
>>>
>>>but what I would like to do is loop though an active form (thisform. ) and check for each field wich is .enabled=.t. or some other flag,
>>>get a value from the tag field and the value of the field itself, and then put it all together in a sql statment,
>>>
>>>help says this .
>>>
>>>FOR EACH Var IN Group
>>> Commands
>>> [EXIT]
>>> [LOOP]
>>>ENDFOR | NEXT [Var]
>>>
>>>could the group be something like thisform.enabled.objects ? or something like that. ?
>>>
>>>or, is there a better way of reaching the same result. ?
>>>
>>>thanks a bunch
>>>Bob Lee
If we were to introduce Visual FoxBase+, would we be able to work from the dotNet Prompt?
From Top 22 Developer Responses to defects in Software
2. "It’s not a bug, it’s a feature."
1. "I thought I fixed that."
All my FoxTalk and other articles are available on my
web site.
Unless specifically identified otherwise, anthing posted here is purely my opinion and may or may not reflect the policies or practices of Microsoft.