• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 4. Using Procedures > Giving a Function a Data Type

Giving a Function a Data Type

You learned in Chapter 3 that variables can have data types. Function procedures, too, can have data types to indicate the data that they return. Here’s a function procedure that explicitly returns an integer value:

Function Procedure22(intInput As Integer) As Integer
  ' Multiple the input by ten and return it
  Procedure22 = intInput * 10
End Function


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint