New RTC Component Macro

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
billduck
Posts: 159
Joined: Thu Jul 01, 2010 1:57 am
Has thanked: 23 times
Been thanked: 16 times
Contact:

New RTC Component Macro

Post by billduck »

I was programming with this component.I wanted to get Minute,Hour, Date and some others. See the images uploaded.
Within the dialog, I was able to assign the Minute and Hour to a variable. But for the Month,Date,and Year, there was not the option.
I am only showing the error/picture for the Date.
Thanks in advance.
Attachments
Get Hour.png
Get Hour.png (188.27 KiB) Viewed 2268 times
Get Date.png
Get Date.png (187.77 KiB) Viewed 2268 times

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: New RTC Component Macro

Post by medelec35 »

Hi billduck,
The parameters is an input that's used if you have different functions that can be returned.
Just hover mouse below the Name or Type to see different return option values available:
RTC.png
RTC.png (59.46 KiB) Viewed 2263 times
In your case the Expression needs to be 0, since you want the normal clock hours & not any of the alarms assigned to your variable.
The Return value will be the variable you assigned for the function. e.g Hour.
Where there are not any parameters to enter, the component will only return the function name i.e in this case the Date:
RTC2.png
RTC2.png (49.56 KiB) Viewed 2263 times
I have moved the topic from bug reports, since not a bug.
Martin

billduck
Posts: 159
Joined: Thu Jul 01, 2010 1:57 am
Has thanked: 23 times
Been thanked: 16 times
Contact:

Re: New RTC Component Macro

Post by billduck »

Thanks. I think I was asleep at the wheel. And will study and learn this.

billduck
Posts: 159
Joined: Thu Jul 01, 2010 1:57 am
Has thanked: 23 times
Been thanked: 16 times
Contact:

Variable arrays

Post by billduck »

Hey medelec35 - I am looking for a tutorial on using arrays.
Any help is appreciated.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: New RTC Component Macro

Post by Benj »

There is a small section on arrays here that might be of use.
https://www.matrixtsl.com/wiki/index.ph ... _Variables

Post Reply