T
Thomas Scheiderich
I am curious as to why ASP.NET returns values a different way from VB or
VB.net (or can you use both).
In my one book I have it returning using a return statement
***********************************************************
function RollDie As Integer
Dim Roll As Integer
Randomize
Roll = Int(rnd * 6) + 1
Return(roll)
end function
***********************************************************
instead of return it only with the assigment to the function name:
***********************************************************
function RollDie As Integer
Dim Roll As Integer
Randomize
Roll = Int(rnd * 6) + 1
end function
************************************************************
Are both of these correct?
Thanks,
Tom.
VB.net (or can you use both).
In my one book I have it returning using a return statement
***********************************************************
function RollDie As Integer
Dim Roll As Integer
Randomize
Roll = Int(rnd * 6) + 1
Return(roll)
end function
***********************************************************
instead of return it only with the assigment to the function name:
***********************************************************
function RollDie As Integer
Dim Roll As Integer
Randomize
Roll = Int(rnd * 6) + 1
end function
************************************************************
Are both of these correct?
Thanks,
Tom.