im new to vb.net and im making a small program
i have to do something like this :
then i have a button
the function didn't return anything
, whats the problem ??
i have to do something like this :
VB.NET:
Sub decod(ByVal t() As Integer)
'do a test
if( something ) then
decod1(t)
else decode2(t)
endif
End Sub
function decod1(byval t() as integer)
dim s as integer
'do things
return s
end function
function decod2(byval t() as integer)
dim m as integer
'do things
return m
end function
then i have a button
VB.NET:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim t(100) As Char
t = "something"
textbox1.text = convert.tostring( decod(t))
End Sub
the function didn't return anything
Last edited: