Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding timer to a command button group
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00189316
Message ID:
00189322
Vues:
15
>If I understand you correctly, I am assuming that you wish to add a timer object when a user clicks on a button. You can do this in this fashion
>
>oTimer = CreateObject("timer")
>WITH oTimer
> Name = "tmrTimer"
> Interval = 10000
> Enabled = .T.
>ENDWITH

Juan, you need to prefix the referenced objects with '.' to make VFP aware that they're property/method refs. The example should read:
oTimer = CreateObject("timer")
WITH oTimer
    .Name = "tmrTimer"
    .Interval = 10000
    .Enabled = .T.
ENDWITH
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform