Cancel
Showing results for 
Search instead for 
Did you mean: 

delete contents of two dimensional array

Builder
Builder

the method "delete" works only for one dimensional array. Is there some way to delete all contents of a two dimensional array?

4 REPLIES

Re: delete contents of two dimensional array

Creator
Creator

Hi Ricardo,

 

Try using the following:
array.delete({0,0}..{*,*});

{0,0}..{*,*} indicates the cells you want to delete.

 

Regards,

Noud

Re: delete contents of two dimensional array

Builder
Builder

good. thanks for helping.

Re: delete contents of two dimensional array

Creator
Creator

Hi Ricardo,

 

Please mark the answer as the solution if this answered your question such that other people can see your question is already answered. This helps the use the forum Smiley Happy

 

Glad I could help.

 

Regards,

Noud

Re: delete contents of two dimensional array

Siemens Phenom Siemens Phenom
Siemens Phenom

Two dimensional arrays have fixed dimensions. You cannot delete elements.

If you need to change the dimensions, you need to use a table instead.

_________________________________________________________________
Did you like the answer? Then click the Thumbs Up button.
Did the answer solve your problem? Then accept the answer as solution.