Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DrawText format problems
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 8 SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00998177
Message ID:
00998181
Views:
19
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform