| Ole4D Methods | ||||||||||||||
|
OCCreaFomFile(p_AreaVar;p_FilePath) Method OCCreaFomFile, creates an Ole object from a file. The type of the ole object is decided by the operating system during OCCreaFomFile method call. Parameters
Return Values 0 – The method call was successful. If the method call was not successful the return value is non zero. For more information call OCLastError. Remarks The object is created in the inactive state. The user interface of the object like toolbars and menus is not shown. To activate the object call OCActivate with the plug-in area variable as parameter. Example
$i := OCCreaFomFile(OlePlugIn,“c:\log.txt”)See Also OCCreaLinkToFile, OCCreaFromProgId, OCCreaFromCLSID, OCCreaFromBlob, OCDestroyObject, OCActivate , OCDeactivate | ||||||||||||||