INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: What is the easiest way to test expressions?  (Read 1845 times)

Castius

  • Citizen of the Universe
  • *****
  • Posts: 562
What is the easiest way to test expressions?
« on: September 08, 2015, 10:47:25 am »

I would like quickly see the values some expression would generate.
For example i wanted to make an expression to show me this weeks new recordings.

So I started with:
FormatDate([Date Recorded, 0], elapsed
But that produced
3.6 days
So then i had to add
RemoveRight(FormatDate([Date Recorded, 0], elapsed)

I'm sure there are other ways to do this.
But i had to hit ok then reopen the editor to get this far.
Plus a few other attemped because i forgot a ',' somewhere.
If i wanted to test other ways to edit FormatDate it will take many more tries.

Is there a reason there is no apply at least.
I find every time i start to use expressions. i feel this great power at the edge of my finger tips.
Slip away as other house priorities start to pull me away.

Thanks
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42387
  • Shoes gone again!
Re: What is the easiest way to test expressions?
« Reply #1 on: September 08, 2015, 10:56:06 am »

Personally I just have an expression column in the view.

You can right-click on it and get to the edit really quickly.
Logged
Matt Ashland, JRiver Media Center

Arindelle

  • Citizen of the Universe
  • *****
  • Posts: 2772
Re: What is the easiest way to test expressions?
« Reply #2 on: September 08, 2015, 11:00:27 am »

Personally I just have an expression column in the view.

You can right-click on it and get to the edit really quickly.
Same for me too
Logged

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: What is the easiest way to test expressions?
« Reply #3 on: September 08, 2015, 11:06:55 am »

Expression columns seem to be the fastest way to work on expressions that I've found.

What might make it MUCH faster though, is if the Expression Column editor had an Output pane below or beside it.  That way you could develop your expression "in real time" without having to close the editor and open it back up each time.  I've sometimes had to go back to an expression 10 or more times to get it working correctly.  An Output area would speed this up a lot.  Just an idea.

Brian.
Logged

Castius

  • Citizen of the Universe
  • *****
  • Posts: 562
Re: What is the easiest way to test expressions?
« Reply #4 on: September 08, 2015, 01:13:02 pm »

It would also be great to have a test area. So you can just test parts of your expression.

At the very least we could use a "apply" button.
Logged
Pages: [1]   Go Up