Get("quoted", Param1);

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
klownboy
Posts: 4459
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.8037 at 100% 2560x1440

Get("quoted", Param1);

Post by klownboy »

Would it make sense to have a get command function for obtaining a string in quotes that part of a larger string. Yes, I know it can be done in other ways, but it would seem to have some value in simply being able to:
$list_CEA_script = CEA(1,_-2); // load "Session Manager";
So, the new get function would be:
$list_CEA_script = get("quoted", $list_CEA_script); // resulting in Session Manager with no quotes
It would be easier than using trim and un-quoting here. Though there are numerous ways to accomplish this (e.g., gettoken, regex, etc)
$list_CEA_script = quote(trim($list_CEA_script,"load ;"),1);

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

Re: Get("quoted", Param1);

Post by admin »

Why not write a user function yourself? :)

klownboy
Posts: 4459
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.8037 at 100% 2560x1440

Re: Get("quoted", Param1);

Post by klownboy »

Yes, no problem I can do that. I was only thinking it may be something others could use as well.

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

Re: Get("quoted", Param1);

Post by admin »

Only others can tell. :)

Post Reply