How to refer to selected item?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Stef123

Re: How to refer to selected item?

Post by Stef123 »

admin wrote:Try this:

Code: Select all

echo getpathcomponent(<selitem>, "ext");
It's not efficient to add too many variables.
Yes, sure, I am fine with it.
I figured you probably had good reasons for <curext> and even <cursize> - so it seems safer to mirror that, to anticipate issues with whatever reasons there are for the other two. But right now, I don't need it.

admin
Site Admin
Posts: 65132
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: How to refer to selected item?

Post by admin »

That's historically explained: <curext> is much older than getpathcomponent.

But you are right. Some symmetry is always nice.

Post Reply