Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Searching in control (Read 1920 times)
bxsl
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 28
Joined: Oct 10th, 2006
Searching in control
Jul 17th, 2007 at 9:48am
Print Post  
I use the control in timetable view; I need to search the control to find appointments with say "test 123" in the header text. Is there a easy way to do this? also need it for VB.net

Cheers
  
Back to top
WWW  
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Searching in control
Reply #1 - Jul 17th, 2007 at 10:15am
Print Post  
The code should look similar to the following:

Code
Select All
Dim a As Appointment

For Each a In cal.Schedule.Items

    If a.HeaderText = "test 123" Then

	  ' a refers to our appointment

    End If

Next 


If you have recurring appointments however, the code will be a bit more complicated. You will have to use the Schedule.GetAllItems method to obtain the recurring item instances as well.

Meppy
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint