String.parse BUg?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • yosik
    Indigo Rose Customer
    • Jun 2002
    • 1858

    String.parse BUg?

    The string.parse action with filename option doesn't seem to work. I am getting the full original string as result. The extension option does work fine though.
    Seems like a bug to me..
    Yossi
  • Lorne
    Indigo Rose Staff Member
    • Feb 2001
    • 2729

    #2
    Re: String.parse BUg?

    What string are you passing to it?
    --[[ Indigo Rose Software Developer ]]

    Comment

    • yosik
      Indigo Rose Customer
      • Jun 2002
      • 1858

      #3
      Re: String.parse BUg?

      I am taking a url from a local (absolute) address in a webbrowser object and I want only the filename, so that it would work on any machine.
      To be sure, I put a text object for debugging purposes which returns the value of said string.
      I got the full path instead of the filename only. As I said, using the extension option for the string.parse action, I got the extension itself only, as I wanted.
      Yossi

      Comment

      • Worm
        Indigo Rose Customer
        • Jul 2002
        • 3971

        #4
        Re: String.parse BUg?

        The URL will have the \ set as a /. Try doing a find from the end to get the postion of the last / and then do a right sting function. Or, you could do a Count Delimited using / as the delimiter, then Get Delimeted String using the count for the last string.

        Comment

        Working...
        X