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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

these: "(" or "["

Status
Not open for further replies.

tester321

Programmer
Mar 13, 2007
150
CA
Hi i've been playing with syntax of sessions and am finding that round brackets and square brackets have their places, what is the reasoning behind the two? Thanks
 
I get it, it seems that square brackets are used when you reference an object explicitly, and round brackets are used with you reference the object implicitly
 
Square brackets are used with arrays and indexers. They're also used when applying an attribute to a property or method. Parenthesis are used when making a function/method call.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top