Results 1 to 4 of 4

Thread: Delete row

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Feb 2009
    Location
    Brazil
    Posts
    2,418

    Default Re: Delete row

    this is not a ROW, It's just an item from an Array.

    so, you need to work with array function. RemoveFromArray is what you are looking for

    Also, I see a failure in your loop logic. you are increment the row, but you are also deleting/removing one item from the array, so, you will "loose" some itens in your loop.

    suppose you have 10 itens in the array, and you remove item 5. You logic will never visit original item 6. because after the delete, item 6 will become item 5, and and you increment irow variable, you gonna jump it in the next loop. In other words, when you remove an item from the array, you should not increment the index loop.

    Regards
    Last edited by Samuel Pizarro; 17-Feb-2020 at 07:48 AM.
    Samuel Pizarro

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •