Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grandparents?
Message
De
11/03/1999 16:52:55
Donny Sims
Independent Computer Consultants Inc
Scottsboro, Alabama, États-Unis
 
 
À
11/03/1999 16:40:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Divers
Thread ID:
00196532
Message ID:
00196540
Vues:
38
>>I've created a container class with a timer and a command button group in it, when the timer (timer1) fires it clicks the first command button (command1) and shuts itself off like this:
>>
>>this.parent.commandgrp.command1.click
>>this.enabled=.f.
>>
>>Which starts a process that cascades through the command button group. All this is working fine, the problem comes when the last command button attempts to restart the timer with :
>>
>>this.parent.parent.timer1.enabled=.t.
>>
>>The timer is not restarting, is parent.parent a valid reference ? Is their any other way to reference timer1 from a button in the command button group ? Should I just give up on finding something useful to do with command button groups ?
>>
>>TIA
>
>Try to change the order of these lines, i.e.
>this.enabled=.f.
>this.parent.commandgrp.command1.click

Thanks Edward, that fixed the problem but I must admit I don't understand why. If you care to enlighten me, maybe it would prevent future stupid questions.
Donny Sims

Life is what happens to us while were busy making other plans.
- John Lennon
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform