Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Vfp6 datatype mismatch
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Vfp6 datatype mismatch
Divers
Thread ID:
00523356
Message ID:
00523356
Vues:
28
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform