Forum Discussion
karkadil
16 years agoValued Contributor
Hi Christopher,
Your example is completely incorrect :) I believe you are mixing Visual Basic and VBScript languages.
Here is a correct version of your function
Function example1(ByVal id)
if( id = 1234) Then
example1 = false
Exit Function
End if
if( id = 4321) Then
example1 = false
Exit Function
End if
example1 = true
End Function
You can learn more about VBScript here
http://msdn.microsoft.com/en-us/library/t0aew7h6%28VS.85%29.aspx
or download an offline document
http://www.microsoft.com/downloads/details.aspx?FamilyID=01592C48-207D-4BE1-8A76-1C4099D7BBB9&displaylang=en
Your example is completely incorrect :) I believe you are mixing Visual Basic and VBScript languages.
Here is a correct version of your function
Function example1(ByVal id)
if( id = 1234) Then
example1 = false
Exit Function
End if
if( id = 4321) Then
example1 = false
Exit Function
End if
example1 = true
End Function
You can learn more about VBScript here
http://msdn.microsoft.com/en-us/library/t0aew7h6%28VS.85%29.aspx
or download an offline document
http://www.microsoft.com/downloads/details.aspx?FamilyID=01592C48-207D-4BE1-8A76-1C4099D7BBB9&displaylang=en