Cancel
Showing results for 
Search instead for 
Did you mean: 

Reset Table including the index

Experimenter
Experimenter

Hi all,

 

I was wondering, if there is there a smart way to delete everything in a table including the index (column 0).

 

Unfortunately,

table.delete

only removes all data starting in column 1. From a perfomance point of view, I'm assuming that

table.delete({0,1}..{0,*})

is not the best way of doing so.

 

Thanks for any help.

 

Cheers

Ben

 

2 REPLIES

Re: Reset Table including the index

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor
why not?

try

TableFile.delete({0,1}..{*,*})
Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net

Re: Reset Table including the index

Experimenter
Experimenter
For me, this seems to be rather a "quick and dirty" approach than a "smart" one.
However, thank you for your quick response!