If you want your function to be flexible, just use
ARGB(VarA, VarR, VarG, VarB)
And, define all these vars as any other variables, in input box, or in the script or in variable overview. Function replace() is a string function, and it makes sense in this content only if you load your argb() function from some source as a string:
ColorFunction // the value of this field is 'argb(255,100,100,150)'
I have a variable called $(color.bars), I have buttons that change the color of the bars, basically changing
I have another variable called $(color.ribbon) which I have an option to change the bars to the same color as the ribbon, however the ribbon is ARGB(255,100,100,150) which means when I select to color of the bars to change to the same color as the ribbon, it changes the $(color.bars) variable from ARGB($(a),$(r),$(g),$(b)) to ARGB(255,100,100,150)
this means my other buttons will no longer works as they are changing the $(a),$(r),$(g),$(b) variables which don't exists
I wanted a quick way to change it back so my other buttons work.