Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Variable Reference error on TextBox
Message
De
04/10/2007 12:51:39
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
04/10/2007 10:51:35
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01258534
Message ID:
01258620
Vues:
16
>>Shouldn't it be
>>
>>.txtBackupDirectory.CONTROLSOURCE = "Thisform.BackupDirectory"
>>
?
>
>Well, not sure about that, but it's somewhat moot now because I just realized that I meant to use VALUE, not CONTROLSOURCE. That works fine.

That works every time you run it - it's just an assignment. If you set .controlsource, that's a bit more automatic; it's an implicit assignment of .value every time the underlying value changes.

So it depends on what you want to do: a controlled update only when your code runs, or an implicit automatic update whenever Thisform.BackupDirectory changes? I figure you'd be happy with the former - how often does the BackupDirectory change? Once in app's lifetime, or once a day. Both seem to outlive any instance of your form.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform