Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
BYVAL Clause
◄Summary► ◄Example► ◄Contents► ◄Index► ◄Back►
──────────────────────────────────────────────────────────────────────────────
The BYVAL attribute in the parameter list portion of a DECLARE, SUB, or
FUNCTION statement (or the argument list of a CALL[S] statement) to indicate
the argument is passed by value rather than by reference (default). BYVAL
cannot be used with a variable of a user-defined type.
BYVAL variable [AS type]
■ variable Name of the variable to pass as an argument; for array
variables, use the parentheses but omit the number of
dimensions
■ type Data type of the argument variable: INTEGER, LONG, SINGLE,
DOUBLE, CURRENCY, or STRING
See Also
◄CALL Statement (Basic Procedures)►
◄DECLARE Statement (Basic Procedures)►
◄FUNCTION Statement►
◄SUB Statement►