PDA

View Full Version : String.parse BUg?



yosik
01-03-2003, 04:38 AM
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
01-03-2003, 12:25 PM
What string are you passing to it?

yosik
01-04-2003, 09:51 AM
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

Worm
01-04-2003, 10:24 AM
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.