Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DrawText format problems
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Database:
Visual FoxPro
Divers
Thread ID:
00998177
Message ID:
00998181
Vues:
20
Or simpler, faster and works with expression also.
lnFormat = EVAL(lcFormat)
>You already made lnFormat numeric with macro substitution:
>
>lcFormat = ALLTRIM(fg.txt_format) && TEXT_LEFT coming in from the table.
>lnFormat = &lcFormat  && lnFormat is now numeric
>
>*** I prefer to do this that way
>*** lnFormat = VAL(lcFormat)
>*** or even easy
>*** lnFormat = VAL(ALLTRIM(fg.txt_format))
>*** but it's your choice
>apierror = DrawText(.hDC, lcText, lnLen, txtbox, lnFormat)
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform