PDA

View Full Version : Schedule Start Times


Dave Byron
20 Apr 09, 01:32 PM
Can I have some sample code that selects a schedule then gets the schedule name and schedule start time.
Can not find out how to do it from help file, some thing like this.

procedure xxxx;
begin
SetIntIBSystemIO("Schedule Number", 3);
S1name:= GetStringIBSystemIO("Schedule Name");
S1:= GetIntIBSystemIO("Schedule Start");
writeln('Name =',s1name,'s1 =',s1);
end;


tks
dave

Darren
20 Apr 09, 04:02 PM
You nearly had it right. Try this Dave:

SetIntIBSystemIO("Schedule Number", 3);
GetStringIBSystemIO("Schedule Name", S1name);
S1 := GetIntIBSystemIO("Schedule Time");
WriteLn('Name = ',s1name,', start =', s1);

Dave Byron
21 Apr 09, 07:05 AM
Tks Darren
So close, what I am doing is all the pumps, filters, underwater sound system etc have a start and stop schedules so the user can change them.

But if they come home between the start and stop times I what to start them up, and not hard code the times in the logic.
Now I can look at the schedule times and compare the current time with them.
dave

filpee
21 Apr 09, 09:13 AM
Tks Darren
So close, what I am doing is all the pumps, filters, underwater sound system etc have a start and stop schedules so the user can change them.

But if they come home between the start and stop times I what to start them up, and not hard code the times in the logic.
Now I can look at the schedule times and compare the current time with them.
dave

Is this on a touch screen or homegate? if so then why not just use systemIO's?

Dave Byron
21 Apr 09, 10:25 AM
Filpee
Its for a touch screen and implement in the logic, can you show me how to do it in logic ??

tks
dave