LeThanh201 Posted November 24, 2008 Share Posted November 24, 2008 Hi, all! I have 2 arrays 1D but I can't concatenate that they are in 2 different columns(as 2D array). Help me, please!!! Link to comment Share on other sites More sharing options...
Manko Posted November 24, 2008 Share Posted November 24, 2008 (edited) Hi, all! I have 2 arrays 1D but I can't concatenate that they are in 2 different columns(as 2D array). Help me, please!!!Hi! Redim $somearray[Ubound($somearray,1)][2]oÝ÷ Úf¤zË(櫬¶wkÚ笶§Ê¡j÷¢j/zö¥¹ë"Ú-ërݲZ-~º&¶¨¶«jºÚÊ)Ú~å¢ZºÚ"µÍÜ ÌÍÚÏLÈXÝ[ ÌÍÜÛÛYX^KJKLB ÌÍÜÛÛYX^VÉÌÍÚ×VÌWOIÌÍÜÛÛY[Ý^VÉÌÍÚ×B^ maybe you should also check which array is longer, if not equal, and use that for main... /Manko Edited November 24, 2008 by Manko Yes i rush things! (I sorta do small bursts inbetween doing nothing.) Things I have rushed and reRushed:* ProDLLer - Process manager - Unload viri modules (dll) and moore...* _WinAPI_ProcessListOWNER_WTS() - Get Processes owner list...* _WinAPI_GetCommandLineFromPID() - Get commandline of target process...* _WinAPI_ThreadsnProcesses() Much info if expanded - optional Indented "Parent/Child"-style Processlist. Moore to come... eventually... Link to comment Share on other sites More sharing options...
Malkey Posted November 24, 2008 Share Posted November 24, 2008 This seems to work #include <array.au3> Local $aArray1[15] = [1, 3, 4, 5, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 25] Local $aArray2[9] = ["A", "B", "C", "D", "E", "F", "G", "H", "I"] $ans = _Join2ArraysTo2dArray($aArray1, $aArray2) _ArrayDisplay($ans) Func _Join2ArraysTo2dArray(ByRef $array1, ByRef $array2) If UBound($array2) > UBound($array1) Then Local $results[UBound($array2)][2] Local $iSize = UBound($array2) - 1 Else Local $results[UBound($array1)][2] Local $iSize = UBound($array1) - 1 EndIf For $i = 0 To $iSize If UBound($array1) > $i Then $results[$i][0] = $array1[$i] If UBound($array2) > $i Then $results[$i][1] = $array2[$i] Next Return $results EndFunc ;==>_Join2arraysTo2dArray Link to comment Share on other sites More sharing options...
LeThanh201 Posted November 24, 2008 Author Share Posted November 24, 2008 Succeed!!! Thanks for all, my friends! 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