Announcement

Collapse
No announcement yet.

Setting a "top" to a directory

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Setting a "top" to a directory

    I've searched using a few different terms, but can't find what I'm looking for.

    I've got this skin in which I want to browse up and down in the directory structure. I've set it up using the back and browse buttons.

    However, I want to prevent the skin from backing out past it's starting point (much like the audio browser works) when using the back button, but can't figure out how to do so.

    Any help is welcomed.

  • #2
    The only place you can limit the back button is in the music path and video path.. you could use EVAL though:

    Code:
    "SETVARBYCODE;CURDIR;DLPATH||EVAL;ISTOP;strcmp("$CURDIR$";"C:\TOPDIR\")||BYVAR;ISTOP;BACK<<""
    Should execute back only you're not already on TOPDIR...
    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."

    Comment


    • #3
      Thank you sir.

      I have to think through how this works, but I am quite willing to believe seeing as who is providing the response...

      Edit: Thought I should mention that it does work, I just need to understand how it works, not if Guino gives good advice.

      Comment


      • #4
        Originally posted by lbridges View Post
        Thank you sir.

        I have to think through how this works, but I am quite willing to believe seeing as who is providing the response...

        Edit: Thought I should mention that it does work, I just need to understand how it works, not if Guino gives good advice.
        The command g provided is a simple true/false logic statement.

        The "EVAL" function compares the string contents of $CURDIR$, which is your current directory path, to C:\TOPDIR\.

        Simply stated, if $CURDIR$ is equal to "C:\TOPDIR\" then do nothing. Otherwise, browse "BACK," which is accomplished using the BYVAR stamement.
        Pico-ITX / XP Home with EWF-HORM / RR v12/02/2009 / Winamp v5.13 / RRMedia v1.2.2

        Comment


        • #5
          thanks for the explanation.

          Comment

          Working...
          X