General information
Title:
IF Condition problem in .Net
Hi all,
How does IF condition works with AND clause? I have 2 conditions here. Please look for the below code. FYI, when the control reaches here, the value of txtCost.text = "". Here the system is checking for second condition also, when the first condition itself fails. The same kind of code does not execute the second condition in VFP, when the first fails. Why should .Net execute the second condition? Any idea?
If txtCost.Text <> "" AND Val(CDbl(txtCost.Text)) <> 0 Then
'... Some code here
End If
Please let me know your thoughts.
Thanks!
Ravi
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only