It is currently May 2nd, 2024, 3:19 am

Minor issue using measure names in other measures.

Report bugs with the Rainmeter application and suggest features.
User avatar
smurfier
Moderator
Posts: 1931
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

Minor issue using measure names in other measures.

Post by smurfier »

Just a little something I've noticed. If you want to use a measure name in another measure without dynamic variables, the original measure name cannot contain a period.

Example:

Code: Select all

[My.Measure]
Measure=Calc
Formula=1

[OtherMeasure]
Measure=Calc
Formula=My.Measure
This is invalid and would only work by using DynamicVariables. Remove the period and everything works just fine.
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
dragonmage
Developer
Posts: 1270
Joined: April 3rd, 2009, 4:31 am
Location: NC, US

Re: Minor issue using measure names in other measures.

Post by dragonmage »

Have you tried this in measures other than CALC? I'm wondering if maybe CALC sees it as a decimal and gets confused.
User avatar
smurfier
Moderator
Posts: 1931
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

Re: Minor issue using measure names in other measures.

Post by smurfier »

I have not tried that. I was also thinking about the calc measure seeing it as a decimal. Thing is that I was under the understanding that all other measures would require dynamic variables.
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
dragonmage
Developer
Posts: 1270
Joined: April 3rd, 2009, 4:31 am
Location: NC, US

Re: Minor issue using measure names in other measures.

Post by dragonmage »

Have you tried dynamic variables and using the measurename inside []?
poiru
Developer
Posts: 2872
Joined: April 17th, 2009, 12:18 pm

Re: Minor issue using measure names in other measures.

Post by poiru »

dragonmage wrote:Have you tried dynamic variables and using the measurename inside []?
Read his post ;)
dragonmage
Developer
Posts: 1270
Joined: April 3rd, 2009, 4:31 am
Location: NC, US

Re: Minor issue using measure names in other measures.

Post by dragonmage »

poiru wrote: Read his post ;)
I did, I was just looking for a workaround for his calcs that did not require changing all his measure names or waiting for a fix.
poiru
Developer
Posts: 2872
Joined: April 17th, 2009, 12:18 pm

Re: Minor issue using measure names in other measures.

Post by poiru »

dragonmage wrote: I did, I was just looking for a workaround for his calcs that did not require changing all his measure names or waiting for a fix.
I know, I just thought you missed the part where he says that DynamicVariables work.
User avatar
smurfier
Moderator
Posts: 1931
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

Re: Minor issue using measure names in other measures.

Post by smurfier »

I did end up removing the decimals in the measure names so that I don't have to use dynamic variables.
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Minor issue using measure names in other measures.

Post by jsmorley »

Sometimes the best way to make it stop hurting is to stop what you are doing that hurts.
User avatar
smurfier
Moderator
Posts: 1931
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

Re: Minor issue using measure names in other measures.

Post by smurfier »

Well, if you want to go with the most obvious solution...
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .