Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Object reference lost in SQL SELECT ?
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows Server 2003
Network:
Windows 2003 Server
Divers
Thread ID:
01120146
Message ID:
01120361
Vues:
19
>>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform