Message 1 of 2
how to make index counter

Not applicable
09-24-2004
06:51 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
how to make index counter for listbox, starting 0 1 2... and so on,
let say for layers
dim LayerName as Acadlayer
dim Index as Integer
for each LayerName in thisdrawing.layers
ListBox1.Additem LayerName.Name
index = index + 1 ;this is right way
......
......
next
end sub