[Solved] SC fomatlist() separator

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

: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: 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: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
Post Reply
Norn
Posts: 508
Joined: 24 Oct 2021 16:10

[Solved] SC fomatlist() separator

Post by Norn »

Code: Select all

 $text = "1,2,3";
 text formatlist($text, "f", ",", "!1|3"); //1,2,3

 $text = "1|2|3";
 text formatlist($text, "f", "|", "!1|3"); //2
Last edited by Norn on 11 Jun 2024 21:05, edited 1 time in total.
Windows 11 24H2 @100% 2560x1440

jupe
Posts: 3462
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: SC fomatlist() separator

Post by jupe »

You need to use the same separator for the filter as the main sep.

Norn
Posts: 508
Joined: 24 Oct 2021 16:10

Re: SC fomatlist() separator

Post by Norn »

Yes, I found it, report back. :)

Code: Select all

 $text = "1,2,3";
 text formatlist($text, "f", ",", "!1,3"); //2
Didn't see it explained, explain it in the notes maybe.
Windows 11 24H2 @100% 2560x1440

Post Reply