|
SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
Quick Question
This command does not work and I was wondering what I need to do to get the desired results:
Code:
pos = StringLastIndexOf(ChangerLoc, " ") |
#2
|
||||
|
||||
Works for me when I try in Expression Evaluator. What's your evidence for thinking it doesn't work? Have you verified that ChangerLoc is a String and contains the text you think it contains?
__________________
-- Greg |
#3
|
|||
|
|||
Hmmmm...
Well this is what I have done. I did a ChangerLoc = GetElement(DVDLoc, 0). Now when I do a ChangerLoc with a Text under it. It returns the information I am looking for on screen. It shows me. Changer1 199
What I need to do is split that up so I can do some evaluation and manipulation of it. I need to turn Changer1 199 into "199 Changer 1" Problem is when I do pos = StringLastIndexOf(ChangerLoc, " ") Then do Location = Substring(ChangerLoc, 0, pos). I get nothing in the variable Location. Using tracer is not helping me either. DVDLoc ChangerLoc Location Slot are all attributes that are created for the page. |
#4
|
||||
|
||||
Quote:
Similarly, check the pos result from StringLastIndexOf to see if that's what you expect. Basically you just need to break your code down into minimal steps and examine the input and output of each step to find out exactly where it's going wrong.
__________________
-- Greg |
#5
|
|||
|
|||
Thanks
Thanks for you help. DVDLoc is created from DVDPro2Sage.
It is an array from DVD Disc section. [Changer1 188, Changer1 189, Changer1 190] That would be the response that is passed into DVDLoc. I can retrieve the data out by doing a getElement. I will try to implement what you said to determine what that array is made of. I just want this to over. I am not cut out for this work. My mind hurts. |
#6
|
|||
|
|||
Found It
Hello, after a good nights sleep I found what I needed. It was a simple typo. I had a lower case Of.
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Quick and Simple Placeshifter Question | AzJazz | SageTV Placeshifter | 5 | 03-07-2008 02:33 PM |
Quick question regarding Fios and needed Hardware | Target | Hardware Support | 2 | 02-08-2008 08:20 AM |
Quick recording question | jediraverz | SageTV Software | 2 | 12-20-2007 08:25 PM |
A Quick Question (IPTV, Multicasting, Etc) | asthepenguinfly | SageTV Software | 2 | 12-13-2006 03:39 PM |
quick question regarding HD | mbedford | Hardware Support | 1 | 07-19-2006 01:40 AM |