Page 1 of 1

[Solved] GetPathComponents for "ext"

Posted: 22 Sep 2013 10:46
by Enternal
I am trying to get this code to work:

Code: Select all

GetPathComponent(<selitems>,"ext")
But I noticed that the thing it retuns all have have an extra double quotation mark (") at the end for some reason.
For example, I have License.rtf selected, the code returns:
rtf"

I don't think that is supposed to happen.

Re: GetPathComponents for "ext"

Posted: 22 Sep 2013 11:37
by highend
extra double quotation mark (") at the end for some reason.
Because <selitems> ends with a quotation mark...

getpathcomponent is only for a single file, not multiple ones. Use a foreach loop instead.

Re: GetPathComponents for "ext"

Posted: 22 Sep 2013 11:44
by Enternal
OH! I just realized my stupidity. I actually wanted <curitem> and not <selitems>! :oops: