Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Execute Default Behaviour
Message
 
 
À
31/03/1998 06:05:31
Steve Camsell
Windmill Associates
Bath, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00088334
Message ID:
00088461
Vues:
32
Steve,

That's kind of a red flag situations. Some hard design questions to think about:

1) "Why don't you want to run the code there?"

2) Skipping a level to call the ParentClass is generally frowned upon it's a sign functionality hasn't been put where it properly belongs.

3) The button shouldn't know any of the details about the class tree of the form. The button should only talk to the form object and let the form deal with it's inherited code.

Refresh() is meant to handle updating of the controls when the record changes.

>Sorry, I wasn't clear enough in my original message. The Refresh() method of my form contains code. When I click my command button, I only want to refresh my form, I do not want to execute the code in the refresh method. That is why I am trying to run code one step further up the tree. If I could test for this situation, I would put an IF condition..DODEFAULT() in the Refresh(), but this is very difficult. Therefore I am trying to access that default behaviour from my command button.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform