Whatever message this page gives is out now! Go check it out!
CreateObject(type, component-name, domain, username, password)| Parameter | Description |
type | (Optional) - Type of object to create. The default value of type iscomponent.
|
component-name | The CFC name; corresponds to the name of the file that defines the component; for example, use engineComp to specify the component defined in the engineComp. cfc file |
domain | The domain to which the user belongs. |
username | The user name to access the COM component. |
password | The password of the above user name . |
<b>Server's Local Time:</b>
<cfscript>
tellTimeCFC=CreateObject("component","appResources.components.
tellTime");
tellTimeCFC.getLocalTime();
</cfscript>
<br>
<b>Calculated UTC Time:</b>
<cfscript>
tellTimeCFC.getUTCTime();
</cfscript>