Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Textbox Value property disappears
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Textbox Value property disappears
Miscellaneous
Thread ID:
00717555
Message ID:
00717555
Views:
39
This appears to be a bug in 7 and (slightly different) 8.

Create a new form and drop a textbox on it. Set the value property to ={} and put this code in the InteractiveChange() event:

if type('this.value')='U'
wait window nowait noclear 'This.Value is Missing! '+time()
else
wait window nowait noclear transform(this.Value)+' '+time()
endif

Type in today's date with a 4 digit year and watch as you type each character. When you type in the 3rd character of the year, you'll notice that "This.Value" does not exist.

Works in 6, doesn't work in 7. In 8, it works if the .Value property has a date in it initially, but not if it's empty.

Mike
Next
Reply
Map
View

Click here to load this message in the networking platform