Schedule read information in VBA
Hello,
I'm trying to read the Schedule settings of a specific Schedule Group and add the information in a string? I'm not able find a way to access the information set by the user in the runtime in a Schedule, is it possible to read it somehow. The full extent of what I want to achieve is to get all the settings within a Schedule and add them to a string something as:
Monday_Schedule |
{((8:00,ACTIVE),(17:00,INACTIVE)), ((8:00,ACTIVE)),
((8:00,ACTIVE),(17:00,INACTIVE)), ((8:00,ACTIVE),(17:00,INACTIVE),
(19:00,ACTIVE),(23:30,INACTIVE)), ((8:00,ACTIVE),(17:00,INACTIVE)),
((00:00,INACTIVE)), ((10:00,ACTIVE),(17:00,INACTIVE))} |
Re: Zenon Schedule read information in VBA
Hello,<br><br>where exactly do you struggle?<br>I would assume that you can access all properties of all events in schedules through <br>Scheduler > ScheduleGroups > ScheduleGroup > Schedules > ScheduleStandardDay > SwitchingPeriods/Points > SwitchingPeriod/Point > Functions/Time/Variables<br><br>best regards,<br>Alex<br>
Re: Zenon Schedule read information in VBA
Hi Alex,<br><br>Managed to do it in the end, thank you very much for the response.<br><br><br>With best regards,<br>Cosmin
1 Attachment(s)
Re: Zenon Schedule read information in VBA
I'm back with another question, how can I return in VBA the current Schedule group that I'm viewing in the Scheduler Control Element?<br><img src="attachment.php?attachmentid=2486&stc=1" attachmentid="2486" alt="" id="vbattach_2486" class="previewthumb" style="cursor: pointer; opacity: 0.5;">