Brackets

Just starting out? Need help? Post your questions and find answers here.
GenRabbit
Enthusiast
Enthusiast
Posts: 118
Joined: Wed Dec 31, 2014 5:41 pm

Brackets

Post by GenRabbit »

Can [] not be used outside of a structure?

I keep getting error on the last line.

Code: Select all

Structure test
	Hello.s[100]
EndStructure
Global.s hello[100]
User avatar
Michael Vogel
Addict
Addict
Posts: 2677
Joined: Thu Feb 09, 2006 11:27 pm
Contact:

Re: Brackets

Post by Michael Vogel »

Yes, just have a look into the help pages to see a perfect explanation for the differences between (), [] and {}...

F1 :wink:
User avatar
Demivec
Addict
Addict
Posts: 4091
Joined: Mon Jul 25, 2005 3:51 pm
Location: Utah, USA

Re: Brackets

Post by Demivec »

No, you can't use the [] brackets outside of a structure.
GenRabbit
Enthusiast
Enthusiast
Posts: 118
Joined: Wed Dec 31, 2014 5:41 pm

Re: Brackets

Post by GenRabbit »

I knew the difference. It was perfect for what I wanted. But that's fine. Dim it is with ()
Post Reply