Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DBI ctSchedule doesn't actually clear time bars
Message
De
03/12/2013 11:03:41
Ken Knorr
Logos Management Software
Ventura, Californie, États-Unis
 
 
À
03/12/2013 10:31:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01589161
Message ID:
01589174
Vues:
56
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform