Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
[BUG] - VFP 8 Property Assignment Error
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
[BUG] - VFP 8 Property Assignment Error
Divers
Thread ID:
00784269
Message ID:
00784269
Vues:
58
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform