Required if you are using a URL path as the default property of the Web runtime. The value of the SRC property uses HTTP notation to specify the name of the remote ACUCOBOL-GT object to load. If you are using a local file path to specify the name of the ACUCOBOL-GT object, you must use AcuProgram instead.
Parameter Type | Input | Output |
---|---|---|
(BSTR) | [ ] | [ ] |
The Web runtime provides this default property, since a browser may invoke a control by associating its file extension with the MIME type. This means the browser passes the .acu file to the object as the default property, so the Web runtime knows which program to run.
You can use SRC or AcuProgram, but not both.
The following example demonstrates using the <OBJECT> element to specify the program for execution:
<OBJECT CLASSID="CLSID:077C768D-64C1-4AC1-845D-4589B4B2C24E" ID="AcuGTAX1" width="512" height="384"> <PARAM NAME="AcuEmbedded" VALUE="TRUE"> <PARAM NAME="SRC" VALUE="http://server.acucorp.com/location/webinfo.acu"> </OBJECT>
The SRC property is intended for HTTP URLs only. However, you may also address local files if the path is prefixed with "file://" rather than "http://", as shown below. Note that this is also considered URL notation. For example:
<OBJECT CLASSID="CLSID:077C768D-64C1-4AC1-845D-4589B4B2C24E" ID="AcuGTAX1" WIDTH="512" HEIGHT="384"> <PARAM NAME="AcuEmbedded" VALUE="TRUE"> <PARAM NAME="SRC" VALUE="file://c:\webdemo\webinfo.acu"> </OBJECT>
When you use the SRC property to call a file, the downloaded file is given a temporary name and is stored in the current master temporary directory for the user, as specified in Windows. Note that the runtime automatically captures the temporary name and uses it internally; however, the internal name is not exposed.