Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Variable as a reference or value to a function
#5
Example:
Code: (Select All)
Dim ich As Integer
ich = 1
ichnicht ich
Print "from main ich is "; ich

Print "Call returns: "; ichSo%(ich)

Print "from main ich is "; ich

Sub ichnicht (i As Long)
    i = i * 10
    Print "from Sub i is "; i
End Sub

Function ichSo% (i As Long)
    i = i * 10
    Print "from Function i is "; i
    ichSo% = i
End Function
b = b + ...
Reply


Messages In This Thread
RE: Variable as a reference or value to a function - by bplus - 07-17-2022, 07:52 PM



Users browsing this thread: 3 Guest(s)