Need help fixing a problem in my menu...

Discuss and share scripts and script files...
Post Reply
MBaas
Posts: 529
Joined: 15 Feb 2016 21:08

Need help fixing a problem in my menu...

Post by MBaas »

I have a script which builds a popupmenu. After recent edits, I now have a problem with this menu and I don't understand why it is a problem.
First, here's the problem:
18-11-2023_10-45-15.png
18-11-2023_10-45-15.png (29.67 KiB) Viewed 190 times
The "-" in the line "APL (190U64)..." (line 36 in the attached file) is supposed to be a separator, like the ones around "BeyondCompare".
And as far as I am concerned, it IS the same! (I believe that line is correct, but somehow it does not have the desired effect)

To repro, please download xymenu.zip, unzip it, execute popupnested(readfile("C:\Temp\xymenu.txt"), 6:=<crlf>, 7:="|"); (adjust path as required) and select the "Open" menu.
Attachments
xymenu.zip
(2.59 KiB) Downloaded 16 times
______________________________________________
Happy user ;-)

highend
Posts: 13033
Joined: 06 Feb 2011 00:33

Re: Need help fixing a problem in my menu...

Post by highend »

2023-11-18_112729.png
2023-11-18_112729.png (10.04 KiB) Viewed 185 times
No problems here...
One of my scripts helped you out? Please donate via Paypal or paypal_donate (at) stdmail (dot) de

MBaas
Posts: 529
Joined: 15 Feb 2016 21:08

Re: Need help fixing a problem in my menu...

Post by MBaas »

No, that is exactly what I expected to see: the separator separates "Aj Archive Viewer" and the line "APL (190U64..."!

But why are you getting it that way and I am not?
______________________________________________
Happy user ;-)

highend
Posts: 13033
Joined: 06 Feb 2011 00:33

Re: Need help fixing a problem in my menu...

Post by highend »

Because I'm highend and you are... not^^ :masked:

You have mixed line endings (and I resaved the .txt with correct ones)...
2023-11-18_120841.png
2023-11-18_120841.png (18.59 KiB) Viewed 175 times
One of my scripts helped you out? Please donate via Paypal or paypal_donate (at) stdmail (dot) de

MBaas
Posts: 529
Joined: 15 Feb 2016 21:08

Re: Need help fixing a problem in my menu...

Post by MBaas »

Aaaah - that's what I don't like with VS Code: it normalizes line endings on load, so I didn't see it when I edited the file that my script had created :(
Thanks! :beer:
______________________________________________
Happy user ;-)

Post Reply