TApxScript.Protocol

TApxScript

property Protocol : TApxCustomProtocol

Determines the protocol used by UPLOAD and DOWNLOAD commands.

When the script component is created it searches the form for an existing TApxCustomProtocol and uses the first one it finds. If it doesn't find any, it uses the first TApxCustomProtocol later dropped onto the form.

If an UPLOAD or DOWNLOAD command is processed and Protocol is unassigned, the script component creates a TApxProtocol component with default values. That protocol component is destroyed when the script component is destroyed. The automatic creation of the protocol component provides very little control over the protocol. The recommended approach is for the application to create the protocol before the script is executed.