setPropertyValueAsPropertyTypeByIndex

setPropertyValueAsPropertyTypeByIndex(index: Integer;
                                      value: Any) updating;

The setPropertyValueAsPropertyTypeByIndex method of the JadeDynamicObject class converts the value specified in the value parameter to the type of the property on the receiver JadeDynamicObject at the position specified in the index parameter and then sets the specified property to the converted value at run time.

The conversion is the same as that performed using the following syntax.

value.JadeDynamicObject‑property‑type

The conversion does not guarantee that the conversion is valid; for example, a conversion from a Character primitive type to a Date primitive type results in an invalid Date primitive type value.

If the specified value parameter is not a primitive type, conversion is not valid and exception 1000 (Invalid parameter type) is raised.

If the property of the receiver JadeDynamicObject at the position specified in the index parameter is not a primitive type, conversion is not valid and exception 1264 (Invalid type for property) is raised.

2020.0.01 and higher