>Hi All,
>
>I understand how to drill down to various objects on a form but how can you tell which object is first (in Tab order) on the form (or container) while drilling down?
>
>For example if I called the valdation method of an object and wanted to set focus to the first object that failed. How?
>
>
>Thanks
>
Robert
I'm not sure what you mean. When you run the validation code in a container with objects, you could fairly easily call the SetFocus method of the object that failed:
local ox
for each ox in MyContainer.Objects
if !ox.Validation() then
ox.SetFocus()
exit
else
endif
endfor
HTH.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao