• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Name

CreateObject

Synopsis

                    CreateObject("COM", class, context, server)
CreateObject("CORBA", class, context, [locale])
CreateObject("Java", class)
CreateObject("Component", component_name)
CreateObject("Webservice", wsdl_url)

Allows ColdFusion to call different kinds of objects from within cfscript blocks. This function has the same functionality as the cfobject tag.

When the first argument is "COM", the function supports instantiating and using COM objects on local and remote machines. COM objects aren’t currently supported for Unix versions of ColdFusion. In this case, class specifies the program ID for the object, and context specifies the context the object is running in (InProc, Local, or Remote). server is required when context is Remote; it specifies a valid server name using Universal Naming Convention (UNC) or Domain Name Server (DNS) conventions. Example:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint