Jump to content

How to initialize a array


Recommended Posts

Dim const $szProduct = "product"

Dim const $szInstallWizard = "Install Wizard"

Dim $szTitleArr[10][3] = [ [$szInstallWizard,"License Agreement",2058],

[$szInstallWizard,"Serial Number",2058],

[$szInstallWizard,"Ready To Install!",1847],

[$szInstallWizard,"Installation Location",1847],

[$szInstallWizard,"Firewall",1847],

[$szInstallWizard,"Install",1919],

[$szInstallWizard,"Installed.",1900],

[$szProduct,"Static",1191],

[$szProduct,"Describle your",1007],

[$szProduct,"Finished!",1029]]

but it shows compile error , how should I do to initialize a array ?

thank you.

Link to comment
Share on other sites

If you want it on more than one line, you need the underscore character at the far right.

Dim $szTitleArr[10][3] = [ [$szInstallWizard,"License Agreement",2058], _
[$szInstallWizard,"Serial Number",2058], _
[$szInstallWizard,"Ready To Install!",1847], _
[$szInstallWizard,"Installation Location",1847], _
[$szInstallWizard,"Firewall",1847], _
[$szInstallWizard,"Install",1919], _
[$szInstallWizard,"Installed.",1900], _
[$szProduct,"Static",1191], _
[$szProduct,"Describle your",1007], _
[$szProduct,"Finished!",1029]]
Link to comment
Share on other sites

If you want it on more than one line, you need the underscore character at the far right.

Dim $szTitleArr[10][3] = [ [$szInstallWizard,"License Agreement",2058], _
[$szInstallWizard,"Serial Number",2058], _
[$szInstallWizard,"Ready To Install!",1847], _
[$szInstallWizard,"Installation Location",1847], _
[$szInstallWizard,"Firewall",1847], _
[$szInstallWizard,"Install",1919], _
[$szInstallWizard,"Installed.",1900], _
[$szProduct,"Static",1191], _
[$szProduct,"Describle your",1007], _
[$szProduct,"Finished!",1029]]

It does work, thank you

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
 Share

  • Recently Browsing   0 members

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