Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using IIF in Select
Message
 
 
À
14/04/2005 23:26:04
Randy Wessels
Screentek Business Solutions, Llc.
Phoenix, Arizona, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01004977
Message ID:
01004978
Vues:
20
SELECT invno, IIF(usesr2,salesrep2, SPACE(LEN(salesrep2))) FROM invpost
* or 
SELECT invno, PADR(IIF(usesr2,salesrep2,''), LEN(salesrep2)) FROM invpost
>SELECT invno, IIF(usesr2,salesrep2,'') FROM invpost
>
>The above select returns only the first character of the salesrep2 field. I think that is because the usesr2 is a Logical field. How can I return the full length of the salesrep2 field?
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform