Greenseed Posted December 2, 2005 Share Posted December 2, 2005 hello guys! im work on a brand new Chat server with: channel support, file transfer, security support and maybe later a voice support. im working on the engine for channel and im needed a arrayadd() but working for 2 dimension! like this! _ArrayAdd($Array,"String",Dimension,Index) is my array is $test[0][0] the first [0] is the Dimemsion and the second [0] Index or inverse like you wan! i need the arraydel too. thx in advance! GreenseedMCSE+I, CCNA, A+Canada, QuebecMake Love Around You. Link to comment Share on other sites More sharing options...
Valuater Posted December 2, 2005 Share Posted December 2, 2005 i only note arrayadd as _ArrayAdd ( $avArray, $sValue ) i dont see deminsion or Index 8) Link to comment Share on other sites More sharing options...
Valuater Posted December 2, 2005 Share Posted December 2, 2005 you can create a multi-dimensional array Dim $myArray[10][20] ;element 0,0 to 9,19 $rows = UBound($myArray) $cols = UBound($myArray, 2) $dims = UBound($myArray, 0) MsgBox(0, "The " & $dims & "-dimensional array has", _ $rows & " rows, " & $cols & " columns") good luck 8) Link to comment Share on other sites More sharing options...
randallc Posted December 2, 2005 Share Posted December 2, 2005 (edited) Hi, Have you looked at my non-standard UDF from my signature? "Array2.au3". I use a 1D array as a row or column to add at end (default) or at numbered line or column. Examples in that post _ArrayReplace2DRow(ByRef $avArray, $aRowArray, $nRow = '') _ArrayReplace2DColumn(ByRef $avArray, $nRow = '') _ArrayInsert2DColumn(ByRef $avArray, $aRowArray, $nRow = '') _ArrayDelete2DColumn(ByRef $avArray, $nRow = '') _Array2DCreateFromArray($ar1_Array_Row1,$Displayindex=1, $ZeroRowAsHeader=0) _Array2DCreateFirstRow( $aRowArray) _ArrayInsert2D(ByRef $avArray, $aRowArray, $nRow = "") _ArrayDelete2D(ByRef $avArray, $nRow = '')Best, Randall [Note you would only need "Array2.au3" unless you want to use the GUI display as well; then "Array2D.au3"] Edited December 2, 2005 by randallc ExcelCOM... AccessCom.. Word2... FileListToArrayNew...SearchMiner... Regexps...SQL...Explorer...Array2D.. _GUIListView...array problem...APITailRW 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