var.bmx 350 B

123456789101112131415161718192021
  1. Rem
  2. Var is a composite type containing a reference to a variable of the
  3. specified Type.
  4. End Rem
  5. ' the following illustrates parsing function parameters by reference
  6. Function ReturnMultiplevalues(a Var,b Var,c Var)
  7. a=10
  8. b=20
  9. c=30
  10. Return
  11. End Function
  12. Local x,y,z
  13. ReturnMultipleValues(x,y,z)
  14. Print "x="+x '10
  15. Print "y="+y '20
  16. Print "z="+z '30