I used select statement and got some records into cursor in foxpro. Here is my query,
And I need to check null values and not null values using IF Condition. I did my code as below and it is not working.
How can I do this?
Thank you
Code:
stra="SELECT cCm_Sgl_TaxInv,cInvNo FROM MIS.dbo.vInvFinalAll where cInvNo=?thisform.txtInvoiceNo.value"
SQLEXEC(hndOps,stra,'TaxInv')
And I need to check null values and not null values using IF Condition. I did my code as below and it is not working.
Code:
SELECT TaxInv
IF NOT ISNULL(cCm_Sgl_TaxInv)
ELSE
ISNULL(cCm_Sgl_TaxInv)
thisform.cmdCreate.Enabled = .T.
MESSAGEBOX("The value is already inserted")
endif
How can I do this?
Thank you