Hi everybody,
When I click on the schedule and draw a new bar, is there a way to remove this visual appearance?
I've tried in the BarAdded event
if m.lnRetVal = 2
NODEFAULT
loCT.DeleteColorBar(m.nIndex)
return .f.
endif
and it doesn't work. I still see this red bar on the Schedule. The only way is to run a method to recreate the schedule, but this doesn't seem efficient.
Does anyone know how to cancel this newly added bar and remove it from the schedule?
Thanks in advance.
UPDATE. Never mind. It's funny that writing a message forces you to review the documentation. I needed to use DeleteTimeBar instead. It worked fine.
If it's not broken, fix it until it is.
My Blog