PcExpert Posted January 20, 2008 Share Posted January 20, 2008 Hi all, Since the latest version of autoit this part of the code isnt working anymore: $test = StringSplit($expdate, "-") $expyear = $test[3]-1 $expmon = $test[2]-1 $Expdate is formatted like this: 31-10-2009 (dutch date format) Scite gives me this error: Z:\Data\Programming\Cijfer Registratie\V3.1\Programma\update.au3 (30) : ==> Array variable has incorrect number of subscripts or subscript dimension range exceeded.: $expyear = $test[3]-1 $expyear = ^ ERROR I cant figure out what the error is, it worked fine, but now it doesnt anymore. Any Ideas? Link to comment Share on other sites More sharing options...
Xenobiologist Posted January 20, 2008 Share Posted January 20, 2008 Hi, I guess $expdate has not that much members. Test it with _ArrayDisplay. Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
martin Posted January 20, 2008 Share Posted January 20, 2008 Hi all, Since the latest version of autoit this part of the code isnt working anymore: $test = StringSplit($expdate, "-") $expyear = $test[3]-1 $expmon = $test[2]-1 $Expdate is formatted like this: 31-10-2009 (dutch date format) Scite gives me this error: Z:\Data\Programming\Cijfer Registratie\V3.1\Programma\update.au3 (30) : ==> Array variable has incorrect number of subscripts or subscript dimension range exceeded.: $expyear = $test[3]-1 $expyear = ^ ERROR I cant figure out what the error is, it worked fine, but now it doesnt anymore. Any Ideas? I have version 3.2.10.0 and Beta 3.2.9.14 This works fine for me $expdate= '10-9-2009' $test = StringSplit($expdate, "-") $expyear = $test[3]-1 $expmon = $test[2]-1 MsgBox(0,$test[3],$test[2]) Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
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