Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning a value
Message
From
10/12/1997 11:20:23
 
 
To
10/12/1997 11:18:44
Jay Shepherd
Construction DataFax, Inc.
Montevallo, Alabama, United States
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00064986
Message ID:
00065011
Views:
84
>>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

Thanks for the syntax, I searched the help but didn't find anything on it.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform