Results 1 to 4 of 4

Thread: Format global variable

  1. #1
    Newbie
    Join Date
    Feb 2010
    Posts
    40

    Format global variable

    Hello,

    In the Internet_Radio.skin (DFX4.0) there is a setlabel command to '!InetRadio'.
    I want to use that specific label OUTSIDE that specific skin but that won't work this way because when I call the label it isn't (ofcourse) recognized in the other skinfiles.

    Now I'm trying to make a global variable of the current label with the setvar command but it don't seems to work. I'm trying to call the variable directly in the target skin.

    Is this even possible, and if yes, how can I make a global var of the label !InetRadio?


    Also can I write the current label to a file and read that file (.txt) in the target skin.

    I can already write the current label to disk with this command which I put in the line with the EXIT command to the menu.skin file.

    WRITETOFILE;D:\test.txt;=$InetRadio$

    For this to work and to output the right label I have to add this line to each radiobutton configured in the Internet_radio.skin file: (which is not a very efficient way)

    SETVAR;=$InetRadio$;radiostation_name


    What is the command to READ the content of this .txt file??


    What seems to be the best method?

    Porto

  2. #2
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,817
    You should track down what is executing the SETLABEL command (looking at debug.txt) -- hopefully you can make it also be used to set a variable. I don't believe there's a way to read BACK a label set with setlabel.
    Ride Runner RR's Myspace

    "Being happy is not about having what you want, it's about wanting what you have."
    "The best things in life are always free - but that doesn't mean money can't buy you good things."

  3. #3
    The Curator
    Auto Apps:loading...
    Blue ZX3's Avatar
    Join Date
    Aug 2004
    Location
    Chicago area,IL
    Posts
    5,079
    I don't believe there's a way to read BACK a label set with setlabel.
    Correct, found that little bugger when I first started working on RRMedia. That should have been something in the cmd docs. Being able to set a custom label and not being able to read it latter is/was completely illogical to me.
    RideRunner...The #1 FE, PERIOD.

    Current Project: DFXVoice [v1.0 Released]
    Next in line: RRMedia v2.0

    DFX 5.1.1 Skin
    Appstore Link

    My RideRunner Plugins
    RRMedia
    RRExtended
    DFXVoice

    "There are no bugs - only undocumented features."

  4. #4
    Newbie
    Join Date
    Feb 2010
    Posts
    40
    Pity, I just can't get it to work.
    I can make a variable from the label with the setvar command but am not able to read it, I only can write the correct string to a .txt file and that's about it.

    All tries to read either the setvar command or the .txt file with all sorts of possible commands gave me either wrong strings or just empty strings.

    Ah well, will give it some rest... maybe give it a try another time.

Similar Threads

  1. Changing Indicator variable to another name
    By potpeye in forum Road Runner
    Replies: 4
    Last Post: 06-18-2009, 01:09 PM
  2. Variable syntax questions
    By Iamthehor in forum FB Software
    Replies: 14
    Last Post: 02-25-2009, 10:58 PM
  3. found in fperrorlog
    By 510SX in forum FP Bug Reports
    Replies: 3
    Last Post: 09-21-2006, 09:01 AM
  4. Format Options?
    By Cheekz185 in forum General MP3Car Discussion
    Replies: 1
    Last Post: 09-29-2005, 07:15 PM
  5. yet another frodo install with problems.
    By Marsupial in forum FrodoPlayer
    Replies: 10
    Last Post: 08-27-2004, 07:28 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •