>>I am new to VFP and am working with transported FPW26 code which contains "_curobj = objnum(m.variable) " type code.
>>
>>I have read several warnings about using setFocus only from the lostFocus event. My problem is that the object from which I need to setFocus is a group of option (ie "radio") buttons. The group has no lostFocus event, yet that is where I need to do the setFocus. Doing the setFocus from the group valid event seems to work, but being new to VFP I'm worried.
>>
>>Please advise
>>
>>Thanks
>>Lovell
>
>
>Lovell: I've been using the valid() method to launch a setfocus() for quite a while now and haven't had any trouble. Specifically, I've used the OptionGroup like you and it's been fine.
>
>
>Barbara Paltiel
Barbara,
That works in VFP 3.0, but not in VFP 5.0.
Craig
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer