Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to return integer from NVL()
Message
De
17/06/2004 18:06:29
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00914820
Message ID:
00914836
Vues:
11
>In VFP9
NVL(myfield, CAST(0 AS int))
>* or
>CAST(NVL(myfield, 0) AS int)
In VFP8 and earlier it isn't possible but you can create numeric field with enough size by specifying according number of zeros.
NVL(myfield, 0000000)
>
>>How do you get NVL() to return an integer if value is null?
>>

Thanks Sergey. That is what had to be done in FPDos also. Glad to see CAST()
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform