Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Variable Reference error on TextBox
Message
From
04/10/2007 12:51:39
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
04/10/2007 10:51:35
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01258534
Message ID:
01258620
Views:
18
>>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform