|
|
|
Junior Member
      
Group: Forum Members
Last Login: 10/6/2008 9:19:56 AM
Posts: 13,
Visits: 40
|
|
| I need to remove levels which I added via script, how do I do that? The list is later recalled and filled with other items thanks, a.
|
|
|
|
|
Forum MVP
      
Group: Administrators
Last Login: Yesterday @ 9:26:59 AM
Posts: 576,
Visits: 1,254
|
|
| There is currently only the abilty to add levels at runtime. However, if you run the following script, you essentially start with a blank List object. Dim x As Long For x = 1 To MyList.Size MyList.SetWeight x, 0 Next 'x Then you can populate the List again. You will just need to setup the Order and Deletion objects again (search for your List object in Full script and copy/paste that section). Note that you would want to peform something like the following to ensure you have enough rows and you are not adding rows you do not need. If MyList.Size < x Then MyList.AddLevel x MyList.SetWeight x, 1 MyList.SetProc x, "MyProcedure",
MyList.SetAttrib x, "MyAttrib", "MyValue"-Brandon
|
|
|
|
|
Junior Member
      
Group: Forum Members
Last Login: 10/6/2008 9:19:56 AM
Posts: 13,
Visits: 40
|
|
| ok, this is not exactly what i was looking for, but if the function to delete rows is not hardcoded I think I have no other choice. Let me try and adjust to my script. While you are there can you explain me the purpose of the Deletion/NoDeletion obeject because it's not clear reading the help. When should be used? What does exactly do? thanks, a.
|
|
|
|