Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DBI ctSchedule doesn't actually clear time bars
Message
From
03/12/2013 11:03:41
Ken Knorr
Logos Management Software
Ventura, California, United States
 
 
To
03/12/2013 10:31:53
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01589161
Message ID:
01589174
Views:
58
DBI controls are zero based so you should use lnl = 0 to toScheduleObject.ListCount - 1. As to the other issues I don't know.

Ken

>Hi all.
>
>After the schedule has been populated, I am trying to re-populated it. I tried using this code:
>
>*** Clear the time bars just in case the user selected a new start date
>*** Or Checks one of the boxes that says "View this event only" etc.
>*** The documentation says that the following should work, but in practice
>*** it does not - the call to ClearTimeBars() returns true, but they remain
>*** visible in the scheduler, so get out the sledge hammer
>*!* FOR lnI = 1 TO toScheduleObject.ListCount
>*!* toScheduleObject.ClearTimeBars(lnI)
>*!* ENDFOR
>toScheduleObject.ClearSchedule()
>
>As you can see from my comments, ClearTimeBars() did not actually remove them from the display. ClearSchedule() did indeed clear the schedule, but when I re-added the time bars, the time bars associated with the previous first list item were still being displayed.
>
>Note: the list item that was #2 became list item #1 after re-populating the control.
>
>How do I get the time bars that I don't want to see anymore actually go away?
>
>The code did not throw any errors and the ClearTimeBars() method returned true, but the TimeBars never went away.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform