GodBegMe Posted August 11, 2007 Posted August 11, 2007 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.
Richard Robertson Posted August 11, 2007 Posted August 11, 2007 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]]
GodBegMe Posted August 11, 2007 Author Posted August 11, 2007 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now