Sign in to follow this  
Followers 0
GodBegMe

How to initialize a array

3 posts in this topic

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.

Share this post


Link to post
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]]

Share this post


Link to post
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

Share this post


Link to post
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
Sign in to follow this  
Followers 0