>>It shouldn't have something with commandbutton's setfocus. Are you sure in Gotfocus, When etc or target object doesn't have some code to lend focus to next ?
>
>Cetin and Mark,
>
>This is what comes out of the Coverage Profiler:
>
>
> 0.003824,,codes.t48_page_frame1.page3.cbo_code.gotfocus,3,d:\working\mff100\vmff\forms\codes.sct,6
> 0.000112,cbo_detail_fields,cbo_detail_fields.lostfocus,2,d:\working\mff100\vmff\libs\app_codesform.vct,5
> 0.000148,cbo_detail_fields,cbo_detail_fields.lostfocus,3,d:\working\mff100\vmff\libs\app_codesform.vct,5
> 0.000071,cbo_detail_fields,cbo_detail_fields.lostfocus,6,d:\working\mff100\vmff\libs\app_codesform.vct,5
> 0.000114,,codes.t48_page_frame1.page3.cbo_fulldesc.gotfocus,2,d:\working\mff100\vmff\forms\codes.sct,5
>
>
>There is only minimal code in the GotFocus of the instance in order to have the line show up in the Coverage Profiler. How could it possible go directly from the GotFocus of the instance to the LostFocus of the class? Does something run inbetween that wouldn't appear here?
>
>Renoir
Renoir,
This is only gotfocus-losfocus profiling. What if some object did something like :
cbo_code.setfocus
cbo_fulldesc.setfocus
Hard to catch. I would copy cbo_code directly on form and call form.cbo_code.setfocus() from a click.
Cetin