Jump to content

How can I declare a Global Const Array?

Recommended Posts

I'm not very good with arrays, but I belive you can use:

Global Const $FileSet["connect.ini", "folder1.ico", "folder2.ico", "folder3.ico"]

If this doesn't work sorry, but im not sure 100% of the syntax for that. :D Hope it helps!

I was hoping it would be something like that, but that gives me the same error that all of my other attempts led to...

Error: Array variable subscript badly formatted.

Thanks much for trying though.

Link to comment
Share on other sites

After a few more tries, I figured it out.

Global Const $FILESET[4]=["connect.ini","folder1.ico","folder2.ico","folder3.ico"]

Make sure the dimension covers the number of values, or more. Oddly enough, it's not 0-based, even though array access is.

Edit: and KentonBomb confirms it - should have reloaded before posting.

Edited by aGorilla
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...