Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL SELECT bug in VFP 8, using memo fields
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00792876
Message ID:
00793447
Views:
81
Please note that the resulting column width cannot be longer than 254 (maximum width of a character field). The statement should be:

#define n 254 && or a number smaller than 255 that meets your need
SELECT Padr(bb, n) as dd from a1 INTO CURSOR c1



> No matter in which version, using Transform() and Trim() for creating a column in a SQL command is problematic, or wrong, since the column width will be determined by the data width of first output record. Information will be lost if data in subsequent records are longer. You may consider rewriting your statement as:

> #define n 500 && or a number meets your need
> SELECT Padr(bb, n) as dd from a1 INTO CURSOR c1
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform