>* this fails - read only
>getcopy.cmdOk.Click = "Thisform.Release"
Sergey is, of course, correct that you can't do what you're trying to do, but if you're writing a builder to add code at design time, instead of run time, you can use the WriteMethod() function.
GetCopy.cmdOK.WriteMethod("Click", "ThisForm.Release()")