Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DrawText format problems
Message
 
To
22/03/2005 12:44:33
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:
00998179
Views:
13
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)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform