Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
[BUG] - VFP 8 Property Assignment Error
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
[BUG] - VFP 8 Property Assignment Error
Miscellaneous
Thread ID:
00784269
Message ID:
00784269
Views:
59
If you assign a non-integer value to the Width or Left etc. property of a control the property is randomly assigned another value. If you use an integer value everything works fine.

For example:

lo=CreateObject("textBox")
lo.Width=160 && Work Fine

lo.Width=25.0 && sets the width property to 175

This does not happen in VFP 7.0. I found this problem when converting an app from VFP 7.0 to VFP8. I was dynamically sizing command boxes and noticed the sizes did not work in VFP 8.0 and finally traced to non-integer values being assigned to the width property.

This looks like some kind of C++ type conversion problem.

Simon
Simon White
dCipher Computing
Next
Reply
Map
View

Click here to load this message in the networking platform