Yesterday's date in IFIX

gottspeed

Member
Join Date
Feb 2017
Location
Canada
Posts
24
Hi, I've been asked to display yesterday's date on a screen in IFIX.

I've got [FONT=&quot]Dim yesterday As DateTime = Today.AddDays(-1)[/FONT]
as the logic to find the date, but I can't figure out how to display the result.

My intuition tells me to animate the text and drop that script in like I would on a quickpanel, but IFIX doesn't seem to work that way.

When I highlight the text I want to animate to yesterdays date and choose edit script, I'm stuck on how to use the above formula to actually display text on the operator screen.

Is this simple? Can anyone tell me how to do this?
 
if it is a normal iFix page, you can add a label to the image. Then go to the code editor for that page, find the picture load method and add that piece of code except it will be

LabelX.Text = Today.AddDays(-1)

It may be Caption, I don't have iFix in front of me. Does the method AddDays work for you?
 

Similar Topics

Hi all, I am having trouble trying to stack Yesterday Totalizer. I need to view three values in my HMI (Accumolative Totalizer, Today Totalizer...
Replies
4
Views
1,920
Dear all, i have problem at yesterday total fro FT-42011 as the online reading is approx.=3.8 but after 24 hour found YTDtotal=1.5.I can't...
Replies
2
Views
1,495
Good Afternoon, Just upgraded FactoryTalk View to 8.2 . Worked great the last 2 days. Opened another application it asked if I wanted it in...
Replies
15
Views
7,842
1) SLC processors will be going away much sooner than I expected. The 1747-ASB silver end date is already set for Jan. 2013. The SLC cpu's will...
Replies
15
Views
5,462
Thank's friends for replying my question, bue to tell u friends its very hard to understand PLC becouse i am not from the feild of electronic,i...
Replies
1
Views
1,845
Back
Top Bottom