Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic how do I get the index of an item? (Read 2615 times)
bxsl
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 28
Joined: Oct 10th, 2006
how do I get the index of an item?
Oct 10th, 2006 at 4:46am
Print Post  
can you please tell me how to get the index of an item in the timetable view. I use my own ID numbers and tags out of a database and need to delete an item, the only way that I can see to do this is if I have the index number. can you please tell me how to get the index or how to delete the item from its ID or tag.
  
Back to top
WWW  
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: how do I get the index of an item?
Reply #1 - Oct 10th, 2006 at 5:03am
Print Post  
The items are stored in a collection, which can be accessed from the Calendar.Schedule.Items property. To find the index of a particular item within that collection, simply call the IndexOf method of the collection. You can also traverse this collection and remove from it the item, which meets certain criteria (like having particular tag or id).

Meppy
  
Back to top
 
IP Logged
 
bxsl
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 28
Joined: Oct 10th, 2006
Re: how do I get the index of an item?
Reply #2 - Oct 10th, 2006 at 5:29am
Print Post  
Great thankyou
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint