Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object reference lost in SQL SELECT ?
Message
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows Server 2003
Network:
Windows 2003 Server
Miscellaneous
Thread ID:
01120146
Message ID:
01120361
Views:
14
>>>The ALLTRIM() function is ignored when VFP calculates the size of the result field so it's not necessary to use PADR() unless you want different size of the result field.
>>
>>Really? I always thought that alltrim() makes the length of the final result ambigious. I use PADR with ALLTRIM in all my selects.
>
>Run following code and see for youself. :)
>It's still a good idea to use PADR() though.
>
CREATE CURSOR test (fn C(20), ln C(25))
>APPEND BLANK
>INSERT INTO test VALUES ("John",  "Doe")
>SELECT ALLTRIM(ln) + ", " + fn FROM test INTO CURSOR test2
>LIST STRUCTURE
>
Thanks a lot.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform