Quote from
Gaev on February 14, 2023, 4:15 am
As eluded by @luishp, Reinier Maliepaard (@reinier) authored an elegant method for VisualNEOWin developers to extract a string of unique characters in a specified string.
I am all for elegance (less code) ... so I took his code and turned it into a VisualNEOWin Function ... so you can achieve the same result with just one (Call) command like so ...
SetVar "[str]" "aaxaabbeedxgg"
Call "rmRemoveDuplicates" "[str]" "[uniques]"
AlertBox "uniques" "[uniques]"
I named it rmRemoveDuplicates to give credit for the original script to Reinier.
I have attached a .zip file that contains the Function file ... just unzip it into the Functions folder of VisualNEOWin (note that the Function file has no file extension).
If others can test/validate this code, I can then ask Luis to include it in the next release of VisualNEOWin.
As eluded by @luishp, Reinier Maliepaard (@reinier) authored an elegant method for VisualNEOWin developers to extract a string of unique characters in a specified string.
I am all for elegance (less code) ... so I took his code and turned it into a VisualNEOWin Function ... so you can achieve the same result with just one (Call) command like so ...
SetVar "[str]" "aaxaabbeedxgg"
Call "rmRemoveDuplicates" "[str]" "[uniques]"
AlertBox "uniques" "[uniques]"
I named it rmRemoveDuplicates to give credit for the original script to Reinier.
I have attached a .zip file that contains the Function file ... just unzip it into the Functions folder of VisualNEOWin (note that the Function file has no file extension).
If others can test/validate this code, I can then ask Luis to include it in the next release of VisualNEOWin.
Uploaded files:- You need to login to have access to uploads.
Vadim, HPW and 3 other users have reacted to this post.
VadimHPWCN_IcemandanitoDarbdenral