Home
Download
Purchase
Support
Company
INTERACT FORUM
November 05, 2024, 07:42:04 am
Welcome,
Guest
Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Search
Calendar
Login
Register
INTERACT FORUM
>
More
>
Old Versions
>
Media Center 17
>
Expression Error
« previous
next »
Pages: [
1
]
Go Down
Print
Author
Topic: Expression Error (Read 1737 times)
rhgh
Regular Member
Galactic Citizen
Posts: 301
Expression Error
«
on:
July 07, 2012, 05:43:12 am »
In MC 17.0.106 i use the following expression to show the system date in customize display
formatdate(now(),dddd dd MMMM yyyy) padnumber(formatdate(now(),hour),2):padnumber(formatdate(now(),minute),2)
but in MC 17.0.165 I just get an error message
Logged
marko
MC Beta Team
Citizen of the Universe
Posts: 9124
Re: Expression Error
«
Reply #1 on:
July 07, 2012, 06:20:05 am »
Looks familiar
Works for me here. Are you using it in conjunction with any other expression?
Logged
Some alternative skins are here
|
Import Stats on Steroids
|
Complete Expression Language Alphabetical List
rhgh
Regular Member
Galactic Citizen
Posts: 301
Re: Expression Error
«
Reply #2 on:
July 07, 2012, 06:35:25 am »
when i start mc comes the error message
then in play mode it's ok
then in stopped mode it's ok
when i start mc new i became the error message
Logged
Matt
Administrator
Citizen of the Universe
Posts: 42323
Shoes gone again!
Re: Expression Error
«
Reply #3 on:
July 07, 2012, 09:31:14 am »
You can do it all with one FormatDate(...) call:
http://wiki.jriver.com/index.php/Media_Center_expression_language#FormatDate.28....29:_Formats_a_date_value_in_a_specified_manner
I think it'd be:
FormatDate(Now(), dddd dd MMMM yyyy hh:mm)
Logged
Matt Ashland, JRiver Media Center
rick.ca
Citizen of the Universe
Posts: 3729
Re: Expression Error
«
Reply #4 on:
July 07, 2012, 04:19:28 pm »
I have no difficulty reproducing the error 'Expression Error (Invalid File)'. That happens when the program starts. It evaluates properly after something is played and stopped (I used the expression in the 'Stopped Mode' 'Status' field). Now() and Format
Number
(Now()) works, so it seems there's something wrong with how Format
Date
() is evaluated on start-up.
Logged
rhgh
Regular Member
Galactic Citizen
Posts: 301
Re: Expression Error
«
Reply #5 on:
July 08, 2012, 07:01:35 am »
Thanks Matt
rick.ca Problem solved
MC 17.0.165 error message occurs when the playlist is empty
MC 17.0.106 no error message occurs when the playlist is empty
Right now it's ok for me because I stay with the version 17.0.106 (Music Pc)
only on my laptop, I install the latest stable version.
Logged
rick.ca
Citizen of the Universe
Posts: 3729
Re: Expression Error
«
Reply #6 on:
July 08, 2012, 08:12:52 am »
Quote
rick.ca Problem solved
Just to be clear, it is a bug which should be fixed.
Logged
vagskal
Citizen of the Universe
Posts: 1227
Re: Expression Error
«
Reply #7 on:
July 09, 2012, 12:58:02 pm »
This was a good idea (I too have seen the Expression error). Is there any way of having MC updating the display of time/date even when MC is not the active program or is idle? I guess not but I thought I should ask since I have been fooled by the stale MC time display a couple of times already. Maybe one of those "separate threads" that Matt uses to make wonders happen...
Logged
Matt
Administrator
Citizen of the Universe
Posts: 42323
Shoes gone again!
Re: Expression Error
«
Reply #8 on:
July 09, 2012, 01:08:26 pm »
In a coming build:
Fixed: Using FormatDate(...) in the player bar could cause problems.
Logged
Matt Ashland, JRiver Media Center
vagskal
Citizen of the Universe
Posts: 1227
Re: Expression Error
«
Reply #9 on:
July 09, 2012, 01:20:16 pm »
Quote from: Matt on July 09, 2012, 01:08:26 pm
Fixed: Using FormatDate(...) in the player bar could cause problems.
Thanks!
I suppose the fix is not related to my issue with mistakenly assume that the player bar is always displaying the actual time... I guess I will have to consider this another "time shift" feature in MC.
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
INTERACT FORUM
>
More
>
Old Versions
>
Media Center 17
>
Expression Error