Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

@ before a variable name

Status
Not open for further replies.

mferrer

Programmer
Apr 1, 2003
7
0
0
US
What does an @ before a variable mean ?? ex. @checklst
 
It means that a parameter is being passed into a function by reference. Functions normally accept parameters by value but this allows you to override that behaviour.

You usually see the @ being used when an array is being passed to a function because if you pass by value then only the first element can be accepted.

Geoff Franklin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top