Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can't filter NULL values from cursor returned by SQL Ser
Message
From
07/02/2007 05:36:56
Aye Mya Thida Kyaw
Ingenuity Microsystems Sdn Bhd.
Kuala Lumpur, Malaysia
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
MS SQL Server
Miscellaneous
Thread ID:
01192681
Message ID:
01193130
Views:
10
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform