Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I know is the refresh method is with code?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00361618
Message ID:
00361729
Vues:
27
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()
       * found a refresh method. put code here
       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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform