Report by column number, fail.

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

:info: Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
Post Reply
sweet40
Posts: 84
Joined: 21 Apr 2013 22:16

Report by column number, fail.

Post by sweet40 »

Code: Select all

text report("{name}", "<curitem>"); // can be 'x:\path\to\item', no matter
woks properly.
but

Code: Select all

text report("{#}", "<curitem>");
doesn't, reporting '1' or '2', sometimes (can't reproduce '2' at will, sorry)

Code: Select all

text report("{#}", "x:\path\to\item");
proves what I'm telling, reporting '1' instead of actual number in list, if it were in list. If this works for items not present on list but parsed as parameters, it should work equally for the '#' column.

Code: Select all

text report("{#}<crlf>");
reports all numbers for items but's a false positive, as it seems it is merely numbering all items from top to bottom instead of reporting '#' column content.

Nice feature, this little report'er guy! :wink:

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: Report by column number, fail.

Post by serendipity »

Well, not a bug, its meant to be like this for building lists. Actual numbers in the list would be useless (and annoying) in a personal list.
Help for Report() has a section "Remarks" which mentions that # will report number starting from 1.

If you are looking to get the exact item position, use:

Code: Select all

 text get ("focusedpos");
hope that helps.

Post Reply