Rave Language: Getting and Setting Parameters

Category

Rave - General

Question

How would I set/get parameters while using the Rave Language?

Solution

Setting or Getting parameters while in the Rave Event Editor is quite easily done. Assuming that you have first defined the parameter "MyParam" in Rave, the following code would then set and then use the value from the specified parameter. This code was tested from the OnGetText event of a text component.

RaveProject.SetParam('MyParam', 'My Param Value');
 Value := RaveProject.GetParam('MyParam');