Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can't filter NULL values from cursor returned by SQL Ser
Message
De
07/02/2007 05:36:56
Aye Mya Thida Kyaw
Ingenuity Microsystems Sdn Bhd.
Kuala Lumpur, Malaisie
 
 
À
07/02/2007 04:41:57
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 SP1
OS:
Windows XP SP2
Database:
MS SQL Server
Divers
Thread ID:
01192681
Message ID:
01193130
Vues:
9
My coding purpose is something as following:

strqry = sqlexec(myconnection,"select name, age, remarks from temployee where age>=20","c_emp")

if ISNULL(c_emp.remarks) or EMPTY(c_emp.remarks)
thisform.myfunctionA()
else
thisform.myfunctionB()
endif

The problem is even though the field is actually NULL value, the condition's still wrong.
I wonder how the SQL Server return the NULL values? Because, If I use nvl function in such cases : "lcremark = nvl(c_emp.remarks,"")", then it's worked.
Thanks a lot for u all suggestions.

Regards,
Mya
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform