You could run a little PRG to open the SCXs to look for refresh procedures:
lnRetVal = adir(laForms, '*.SCX')
for i = 1 to lnRetVal
lcForm = laForms[i, 1]
use (lcForm)
locate for 'PROCEDURE REFRESH' $upper(methods)
if !eof()
use
compile form (lcForm)
endif
use
endfor
>>>How can I search or know with objects/clases in my proyect have code inside the refresh method?
>>
>>At design time, you can use the ReadMethod method. At design time, you can't. But then again, you shouldn't ever have to. If you find yourself needing a way to do this, you might want to look at your design again. What are you trying to do? Maybe we can find a better way...
>
>Hi Erik,
>
>It's at design time where I need this, I was told that putting code in the refresh method is not a good way to do the things (objects can get or lost his focus...), but that's not the case. I'm getting some unexpected behaviours in a form (I have a form with a grid, and when you press outside the grid I lose the ALIAS() I assume the alias of the recordsource will remain...), and I'm figuring this is caused by an object refresh.
>
>The goal is know in my framework in wich objects I have code in a refresh method. Rather than seeking this by hand I can figure if there is any way to know this.
Mark McCasland
Midlothian, TX USA