Page 1 of 1

Line Counter on Reports.

Posted: 28 Aug 2010 03:34
by SkyFrontier
Can this

Code: Select all

"Names list"
  text report("{Name} - {Size B} bytes<crlf>");
applied to this
1_AHK_Autohotkey_ALT_DforAdressBar.xysAHK - 117 bytes
...
XYtoBehaveNortonCommander_ListOfFilesThatWillBeCopied.xys - 1.241 bytes
have this

Code: Select all

001 - 1_AHK_Autohotkey_ALT_DforAdressBar.xysAHK - 117 bytes
...
189 - XYtoBehaveNortonCommander_ListOfFilesThatWillBeCopied.xys - 1.241 bytes
as output?
Thanks!

Re: Line Counter on Reports.

Posted: 28 Aug 2010 09:41
by Stefan
Yes.

Re: Line Counter on Reports.

Posted: 28 Aug 2010 12:57
by SkyFrontier
Oh, please, don't do that...
lol
-how, Stefan?
Thanks!

Re: Line Counter on Reports.

Posted: 28 Aug 2010 14:32
by Stefan
"How" wasn't the question, only "if".


Well, report() is an scripting command.
And nearly all scripting commands you can find in the XYplorer help
under "Adv Topics > Scripting Commands Reference"

and for report() i can read
"No. {#}, {name}, {size kb} ({size b}), {modified yyyy-mm-dd}"

Optional format definitions for {#}:
{# @@@@} fill with leading blanks
{# 000} fill with leading zeroes

So i guess

Code: Select all

"Names list"
  text report("{# 000} - {Name} - {Size B} bytes<crlf>");
is was you are searching for?

Re: Line Counter on Reports.

Posted: 28 Aug 2010 19:33
by SkyFrontier
Yes, that's it.
Thank you.