?-debug-syntax breaks on paperfolder()

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
Papoulka
Posts: 455
Joined: 13 Jul 2013 23:41

?-debug-syntax breaks on paperfolder()

Post by Papoulka »

I think this is a bug but this is my first use of a few things here and it may be confusion... Anyway, I have a script with command

Code: Select all

paperfolder(...);
which executes fine. However, trying to debug with the command

Code: Select all

?paperfolder(...);
causes the expected break but then the "paperfolder(...)" command is unrecognized.

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Per-command prompt breaks "paperfolder"

Post by highend »

Uh?

To debug it, place a step; before it. What command should ?paperfolder(...) be?
One of my scripts helped you out? Please donate via Paypal

Papoulka
Posts: 455
Joined: 13 Jul 2013 23:41

Re: Per-command prompt breaks "paperfolder"

Post by Papoulka »

Ref the SC Help for "step", discussing the simplified "?" option -

The following works as advertised, if I understand the Help correctly:

Code: Select all

focus "L";
 $a=1;
 ?$b=2;
 paperfolder("test", "C:\Temp", "|");
 $c=3;
But this fails with the paperfolder() command becoming unrecognized after the step:

Code: Select all

focus "L";
 $a=1;
 $b=2;
 ?paperfolder("test", "C:\Temp", "|");
 $c=3;

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Per-command prompt breaks "paperfolder"

Post by highend »

Ref the SC Help for "step", discussing the simplified "?" option -
Wasn't aware of this...
But this fails with the paperfolder() command becoming unrecognized after the step:
Yeah, indeed, looks like a bug, other commands work...

I've renamed the thread accordingly...
One of my scripts helped you out? Please donate via Paypal

PeterH
Posts: 2830
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: ?-debug-syntax breaks on paperfolder()

Post by PeterH »

Hey: didn't know the ?-syntax, too :shock:
Will try to remember...

To paperfolder: this isn't a complete instruction, just a function. Though it's usually executable.
Try ?$x = paper...; :arrow: maybe it works.

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: ?-debug-syntax breaks on paperfolder()

Post by bdeshi »

I know that step shorthand! +100 xp bonus for me :P

when using this at the beginning of AB scripts, remember to use the :: prefix. Else it's interpreted as a search. I know it's obvious, but I make that mistake all the time... :oops:
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: ?-debug-syntax breaks on paperfolder()

Post by highend »

To paperfolder: this isn't a complete instruction, just a function. Though it's usually executable.
All other functions I've tried worked (without trying to assign them a variable (if they have a return value))...
One of my scripts helped you out? Please donate via Paypal

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

Re: ?-debug-syntax breaks on paperfolder()

Post by admin »

Indeed a :bug: and it applied to all *functions* (as opposed to commands).

This won't work:

Code: Select all

::?ghost(, -1); //toggle ghost filter
Well, next version it does work.

Post Reply