Modify

Opened 4 years ago

Closed 4 years ago

Last modified 4 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 Changed 4 years ago by TicketCleanup

  • Version 3.3.14.0 deleted

Automatic ticket cleanup.

comment:2 Changed 4 years ago by Jpm

[] 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 Changed 4 years ago by mLipok

  • Resolution set to Works For Me
  • Status changed from new to closed

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 4 years ago by mLipok (next)

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.