In order to change an RP variable from your Scheme GUI you must
use the (rpsetvar) macro. For example, if
you want to change the myInt variable created
in Creating an RP Variable to 3 instead of
1, you can use the following statement:
(rpsetvar 'myInt 3)
Note: The new value that you assign to an existing RP variable must be of the type originally declared or else you will receive an error.
(rpsetvar) statements are often used
in the apply-cb function, which is called
when you click the button. In this way,
new values for RP variables are set when you click and the UDF can then access the new values when it needs to run.