How can I continue....

BlitzMax Forums/BlitzMax Beginners Area/How can I continue....

vinians(Posted 2010) [#1]
I need to split a vector declaration in two or more lines see:
local vector[]=["1","ddd","222",
"233",333",
"33"]
Its not working. How can I do this?
Thanks!


N(Posted 2010) [#2]
Add '..' to the end of each line that continues onto a new line.


vinians(Posted 2010) [#3]
Hey thanks! I was trying _


therevills(Posted 2010) [#4]
Yeah the '..' is a nice hidden feature of BlitzMax, I use it a lot when doing large IF statements:

If ((x = 1 And y = 2) ..
   Or ( z = 3 And q = 1)) ..
   And MouseHit(1) Then

   Print "Hello World .."

End If



Kryzon(Posted 2010) [#5]
Yeah the '..' is a nice hidden feature of BlitzMax

I think you meant "undocumented" :)


N(Posted 2010) [#6]
I decided to check the documentation, and this is actually nowhere in there. Funny that.


Htbaa(Posted 2010) [#7]
Hmm you're right, I thought it was documented though.

Didn't knew you could use it for If statements as well. Good to know.