How Can I program a Clock in Flow Code?
Posted: Thu Aug 03, 2006 8:49 pm
I want to program a clock any ideas how i begin?
This is how I was coding
Loop while 1 Declared Variables - Seconds, Minutes, Hours
Calculation = Seconds=Seconds+1
Call Macro Start
Call Macro Clear
Cursor (6,0)
Call Macro Print (Seconds)
Decision Seconds=>59?
IF yes
Calculation Minute = Minute +1
Call Macro Start
Call Macro Cursor (4,0)
Macro Number Print " Minute"
Decision if Minute=>59?
Calculation = Minute = 1, Hour = Hour + 1
Decision if Hour =>12
calculation Hour=1
Am I doing it Wrong?? Can anybody give me any idea on how to do this and how to make inputs. This is my 3rd day with flow code. and am trying to program this clock, which is my first.
This is how I was coding
Loop while 1 Declared Variables - Seconds, Minutes, Hours
Calculation = Seconds=Seconds+1
Call Macro Start
Call Macro Clear
Cursor (6,0)
Call Macro Print (Seconds)
Decision Seconds=>59?
IF yes
Calculation Minute = Minute +1
Call Macro Start
Call Macro Cursor (4,0)
Macro Number Print " Minute"
Decision if Minute=>59?
Calculation = Minute = 1, Hour = Hour + 1
Decision if Hour =>12
calculation Hour=1
Am I doing it Wrong?? Can anybody give me any idea on how to do this and how to make inputs. This is my 3rd day with flow code. and am trying to program this clock, which is my first.