Class: TMMScript
Inherited from: TMMClientBase
property Connection : TMMConnection; // published
TMMConnection
that provides the endpoint, credentials, and EDB session/database.
Set before calling Execute. TMMScript does not
own the connection.
Connection is published and appears in the
Object Inspector when the component is placed on a form or data module.
Setting it in the IDE links the two components at design time.
When the assigned TMMConnection is freed,
Connection is cleared automatically to prevent dangling
references — the setter calls FreeNotification so that
Notification(opRemove) fires correctly when the connection
component is destroyed, both at design time and at runtime.
You can change Connection between calls; the new value
takes effect on the next Execute call.
For full details of the parameter substitution and lifetime rules see
TMMClientBase.