[mono-vb] function needs a return type

Rolf Bjarne Kvinge rolflists at ya.com
Sun Jun 21 14:58:21 EDT 2009


> -----Original Message-----
> From: mono-vb-bounces at lists.ximian.com [mailto:mono-vb-
> bounces at lists.ximian.com] On Behalf Of Jude DaShiell
> Sent: domingo, 21 de junio de 2009 16:27
> To: mono-vb at lists.ximian.com
> Subject: [mono-vb] function needs a return type
> Would something like:Dim ML = ComputeM() As Ushort work to give the
> ComputeM() function a return type? 


A function without a return type is:

Function Foo ()
	Return 1
End Function

A function with a return type is:

Function Bar () As Integer
	Return 1
End Function

It has nothing to do with how you use the function, but how you declare it.


 If it will, that ML variable will
> need
> another variable since ML can be either loaded with ComputeM() or
> RecMov()
> depending on what choice a user makes to obtain a hexagram.  If that
> won't
> work, how is this done correctly?
> _______________________________________________
> Mono-vb mailing list
> Mono-vb at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-vb

More information about the Mono-vb mailing list