Hi Gregory
Thanks for response, but I forgot about the When event which is called before Setfocus occurs, that has got code in it which is calling other "slow" methods.
Thanks anyway
Kev
PS 0.82 seconds is still too slow, even with coverage on.
>>Hi
>>
>>I have a grid class based on another grid class.
>>
>>Through coverage profiler, when DODEFAULT() is called from my grid, it takes around 0.82 seconds! There is no class code in the class it's based on, and no other grids take this long.
>>
>>Any ideas? Maybe it's something to do with the Rowsource which is a Select statement.
>>Thanks
>>Kev
>
>Kevin,
>
>I would say that the reason for this is that you do it via the profiler.
>The profiler has to write to the log file while the clock is running
>
>suggest this in your grid, to be more accurate
>
>local InitTime
>InitTime = seconds()
>if( !DoDefault() )
> return FALSE
>endif
>acti screen
>?this.Name, 'init()', seconds() - InitTime
>