Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Vfp6 datatype mismatch
Message
De
25/06/2001 20:52:48
Gavin Reid
L & M Marketing Pty Ltd
Frenchs Forest, Australie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00523356
Message ID:
00523363
Vues:
9
Hi James,

You need to convert barn to STR(barn,4)
SELECT IIF(hbstb<>" ",hbstb,IIF(tent<>" ",tent,STR(IIF(barn>0,barn,0),4))) as stable from stnhorse order by hip_no
Hope this helps,
Gavin...

>Hi All,
>
>Is it possible to convert datatype in a multiple iif.
>
>hbstb c 4
>tent c 4
>barn n 1
>
>The below select does not give me an error message but only works 2/3.
>
>***begin select
>select iif(hbstb<>" ",hbstb,iif(tent<>" ",tent,str(iif(barn>0,barn,0)))) as stable from stnhorse order by hip_no
>***end select
>
>It does complete the stable field with data from both the hbstb and tent fields but it doesn't fill the stable field with any values from the barn field.
>
>I've tried numerous variations but to no avail.
>
>Any ideas would be appreciated.
>
>TIA
>
>Jim Harvey
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform