Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning a value
Message
From
10/12/1997 11:18:44
Jay Shepherd
Construction DataFax, Inc.
Montevallo, Alabama, United States
 
 
To
10/12/1997 10:41:45
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00064986
Message ID:
00065009
Views:
58
>From a method, what is the correct syntax to return a value?

In VB, a function return value is stored in a variable that is the same name as the function:

Function SquareIt(x as Integer) as Integer
SquareIt = x * x
End Function
Jay Shepherd
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform