"brocker" wrote:
Yeah, I've been posting questions, but I'm so lost I would fill up the board and annoy everyone to the point I suspect they'd say, "Oh that, guy again, ignore him". I've posted a couple topics on my frustration with the learning curve as it's straight up for me. I know there are demo projects, and documents, but the demos aren't commented very well (and in some cases not at all) so trying to understand what something does is extremely frustrating.
Also, for example, in the BrightScript 3.0 reference, on page 17, it's trying to show you how to read from an XML file. There is a line given as an example that is "? rsp.photos.photo". But when I copy the code into a test project, it fails with error "'Dot' Operator attempted with invalid BrightScript Component or interface reference. (runtime error &hec) in ...QgrV/pkg:/source/XML_Demo.brs(14)" which is that line. I don't know what the question mark "?" is as it's the cause of the error. Is that a typo?
Later on the same page there is the line "Print booklist.book.gettext()". Well what is "booklist"??? Where was that declared and where did it come from?? Is there an assumption being made that it was declared same as "rsp" earlier in the sample code? This line also fails.
As you can see, this is simple simple stuff that would just most likely annoy the heck out of everyone if I were to post something this basic continually (although it's a legitimate question to me), and I don't want to burn my bridges by doing so. I just figured that having someone to ask immediately would be 100% faster and less spammy than the forums.
Signed
Clueless in Seattle 😞
? is a synonym for the debugger 'print' command, (see page 67 for more debugger commands). I believe it is only available in the debugger. Use 'print' from within your code to send data to the debugger output.
The text on page 17, just above "Print booklist.book.gettext()" says: "For example, if the variable booklist contains this roXMLElement:"
<booklist>
<book lang=eng>The Dawn of Man</book>
</booklist>
So this suggests that you should create a new variable, booklist = "CreateObject("roXMLElement")" then .parse some xml into it (in this case, the xml data in the code above). Then the "Print booklist.book.gettext()" line should work. Right now, I'm looking at the file mediarsstoolkit.brs from the deviantart example source, and the specific function GetPhotoListFromFeed, all from the 3.0 beta sdk, for an example of how to use roXMLElement.
I don't consider these questions silly, or ones that should be completely obvious, so don't worry about annoying anyone.
🙂 Just ask away.
Remoku.tv - A free web app for Roku Remote Control!
Want to control your Roku from nearly any phone, computer or tablet? Get started at http://help.remoku.tv
by Apps4TV - Applications for television and beyond: http://www.apps4tv.com