Modify

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#3788 closed Feature Request (Works For Me)

Can't we create empty 3D arrays

Reported by: shannithila@… Owned by:
Milestone: Component: AutoIt
Version: Severity: None
Keywords: Cc:

Description

I have a question which is are there any possibilities to create an empty array for example 3D array like

Local $excelOutput[][][]={{{}}}

OR

Local $excelOutput[][][]=[]

Or are there any data structure we can use such as list of list or array of dictionary for the above purpose.

Attachments (0)

Change History (3)

comment:1 by TicketCleanup, 5 years ago

Version: 3.3.14.0

Automatic ticket cleanup.

comment:2 by J-Paul Mesnage, 5 years ago

[] are reserved for Map not for array

I don"t know what you will do after such allocation but for

Local $excelOutput[0][0][0]
Local $iDim = UBound($excelOutput, 0)
ConsoleWrite('$iDim = ' & $iDim & @CRLF)

is working OK

comment:3 by mLipok, 5 years ago

Resolution: Works For Me
Status: newclosed

Dear user shannithila@…
Next time when you want to ask "....I have a question...." please in first place post your question here:
https://www.autoitscript.com/forum/forum/2-autoit-general-help-and-support/

Or if you will have further question please ask them there.

btw.
As @jpm said: Provided by @jpm example works, so you ticket will be closed "Works for Me"

Version 0, edited 5 years ago by mLipok (next)

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.