if anyone knows plz reply
thanks..its throwing error for exit ..i just want to make that particular conditin false after executing (its server side validation hv to make it false and execute next conditin)
sujatha
2010-08-11 07:29:20
@sujatha: Please post your code also to see exactly what you want.
Sarfraz
2010-08-11 07:31:11
Do you mean `Exit Function` ? :)
MarkJ
2010-08-11 10:07:41
@MarkJ: Yes sorry that's what i meant, thanks for pointing that :)
Sarfraz
2010-08-11 10:09:21
+2
A:
Is this what you mean?
Function TestValue() As Boolean
TestValue = False
End Function
pm_2
2010-08-11 08:01:05
+1
A:
You can put the name of the Function in the function code with the False value to set the funcion return to False.
Function TestValue() As Boolean
TestValue = False
End Function
Also if you have more code and you need to return NOW the value you, and not to continue executing the funcion, you can add the sentence "Exit Funcion"
Function MyFuncion() As Boolean
.. some code ...
if ...some value test ... Then
'If you some value test is true we return false and exit the funcion
MyFuncion = False
Exit Function
End If
'If some value test was not true the code continues executing and we return true
.. some code ...
MyFuncion = True
End Function
Dubas
2010-08-11 08:48:41
how to do email validation with regular expressin in asp using vb (server side validation) thanks
sujatha
2010-08-11 11:34:07