Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Variable as a reference or value to a function
#10
When I pass something by value to a function or Sub(procedure), I work with a copy of the variable because I don't want it to change itself.
It doesn't seem to work with a function because the original variable is changed. The result is correct:
eingabe = 5
eingabe = eingabeĀ + 3 -> 8
AlsWert = eingabeĀ + 3 -> 11


[Image: Referenz-Wert-Funktion-QB64.jpg]
Reply


Messages In This Thread
RE: Variable as a reference or value to a function - by Kernelpanic - 07-18-2022, 12:40 PM



Users browsing this thread: 3 Guest(s)