duckblaster Posted September 19, 2008 Posted September 19, 2008 (edited) . Edited March 28, 2009 by duckblaster
dbzfanatic Posted September 19, 2008 Posted September 19, 2008 (edited) Why not just make it a 2D array? like $aArray[8] = StringSplit() That way you can get the return values from StringSplit() like this For $n = 0 To UBound($aArray[8]) MsgBox(48,"Values","The value stored in index " & $n & " is: " & $aArray[8][$n]) Next Edited September 19, 2008 by dbzfanatic Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote]
trancexx Posted September 19, 2008 Posted September 19, 2008 I have code that uses an array with text, boolean, int etc values, and want to add the return from StringSplit() to this array, but have problems, can anyone help me?almost certainly ♡♡♡ . eMyvnE
martin Posted September 19, 2008 Posted September 19, 2008 Why not just make it a 2D array? like $aArray[8] = StringSplit() That way you can get the return values from StringSplit() like this For $n = 0 To UBound($aArray[8]) MsgBox(48,"Values","The value stored in index " & $n & " is: " & $aArray[8][$n]) NextThat is not correct! $aArray[8] = StringSplit() does not magically convert the array into having another dimension it just stores the array in that element. The only way I know to store an array in an array element and then read it again is like this Dim $aArray[10] $aArray[8] = StringSplit("one|two|owls|sheep", "|") $x = $aArray[8] For $n = 1 To UBound($x) - 1 MsgBox(48, "Values", "String " & $n & " in $aArray[8] is: " & $x[$n]) Next @duckblaster. Can you tell us more about the structure of the array you want to add to? 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.
Recommended Posts