Previous | Next | (P-PDF) JavaScript
Topic: RemoveIndex command
Conf: (P-PDF) JavaScript, Msg: 32395
From: aandi
Date: 1/8/2002 09:25 PM
I don't post examples, but why not post your own code for us to look at?
The key is: removeIndex requires an index object. Not a filename, not a number.
There must be a caution, too, I think, if you are removing all indexes.
1. Be sure that this is appropriate for your user group, narrowly defined. If, for instance, I downloaded a file from the internet or used a presentation CDROM, and it removed the indexes I carefully set up myself, I would be very angry indeed!
2. When you are removing items from a list it affects the list; this is a classic programming dilemma. I would recommend writing code that just removes ONE index from the list. Then repeatedly call that until all are gone. DON'T try to write a loop to remove all of them while stepping through the list. Or, if you really must do this, be sure to step through the list BACKWARDS.