Page 1 of 1

get selection image count

Posted: 18 Mar 2018 15:04
by drjs5x
hi dear
$count = get("CountSelected"); this all count.
possible jpg,jpeg,bmp,png,gif count?

thanks. :cup:

Re: get selection image count

Posted: 18 Mar 2018 15:12
by highend
gettoken()
formatlist()

In conjunction they can do what was asked for...

Re: get selection image count

Posted: 18 Mar 2018 15:22
by drjs5x
from selection list?

Re: get selection image count

Posted: 18 Mar 2018 15:23
by highend
Sure

Re: get selection image count

Posted: 18 Mar 2018 15:27
by drjs5x
i will try like " text gettoken(CountSelected, "count", "*.jpg;*.png"); " :biggrin:

Re: get selection image count

Posted: 18 Mar 2018 15:29
by jupe

Code: Select all

text gettoken(formatlist(<get selecteditemsnames |>, "f", , "*.jpg|*.jpeg|*.bmp|*.gif|*.png"), "count", "|");

Re: get selection image count

Posted: 18 Mar 2018 15:34
by highend
Learning effect: 0 or probably: -1

<- Out

Re: get selection image count

Posted: 18 Mar 2018 15:35
by drjs5x
great working .
thanks for reply.
thanks for help.
:cup:

Re: get selection image count

Posted: 18 Mar 2018 15:38
by jupe
highend wrote:Learning effect: 0 or probably: -1

<- Out
I have been trying to teach the OP, but it just results in more & more questions, instead of an answer and then research on the OPs part, so don't dirty up on me, and IMO your analysis is flawed, a lot of people learn easier from seeing the constructed command first than from trying to piece it together themselves, also when you don't read english well like the OP I would think reading the help file is particularly hard to absorb and there might be a benefit to seeing it completed, but from now on I will let you answer every question the way you want.

Re: get selection image count

Posted: 18 Mar 2018 15:51
by drjs5x
highend and jupe. dears. thank you very much. I appreciate you. you are great .
Sincerely.