Quick Sign In:  

Forum: Wishes and new features

Topic: Param to delete specified string
When dealing with numbers, subtracting is not a big deal since we have param_multiply and param_add and we can do something like param_add 'get_var a' 'get_var b & param_multiply -1' to subtract the two but what about strings?
We need an action for that. Let's say set "str" "unique1, unique2" & get_var "str" & param_contains ", unique2" ? get_var "str" & param_delete ", unique2" & param_cast text & set "str" : action2

This way we can quickly delete part of a string without affecting others. Imagine if you have stored different values in one field like comment. If you want to mass update a certain property, you will have to reconstruct the whole thing or use third party tools to do it.

Also as a bonus, it should accept a second parameter for length. So if my string is bpm=90,
I can effectively only be able to query the constant part like param_contains "bpm=" since 90 is dynamic. So if I wanted to delete and update I would just say param_delete "bpm=" 2 and it would delete the whole thing then I would concatenate the new value with the remaining comment values.
 

Posted Mon 03 Feb 25 @ 1:43 pm