dim mystring as String = "Hallo world"
MySub(mystring)
'
'
Sub MySub(myvalue as String)
' here you get he given value in myvalue
log(myvalue)
end sub
Sub example(val1 As Int, val2 As Int) ' declare any type of variable you need
Log("Value 1=" & val1 & " Value 2=" & val2)
End Sub
' call using...
example(variable1, variable2)
Select var
Case "example"
example(variable1, variable2) 'sub call to example
Case "example2"
example2(str1, str2) 'sub call to example2
Case Else
anothersubname 'sub call to anothersubname
End Select
Dim Variable As String
Variable = "TryThis"
CallSubDelayed(Me,Variable) 'call the sub
Sub TryThis
Log("Trythis")
End Sub
Sub Activity_Resume
Dim Variable As String
Variable = "TryThis"
CallSub(Me,Variable) 'call the sub
End Sub