Recipe upload by script
You can also update (upload) a recipe through a script that references the RCPUPLOAD80.DLL library as in the following example:
'Declarations
Dim UL_dll as Object 'ActiveX server object
Dim szFile as String 'path+nomefile della ricetta
Dim rc as Boolean 'returnCode
'create an ActiveX server object for upload
Set UL_dll = CreateObject("rcpUpload80.clsUpLoad")
'Recipe to send
'if on network station, you must specify a network share
szFile = "c:\programmi\Crickets Automation\" & _
"X Vision 8. 0\Projects\MioProgetto\" & _
"Recipes\MiaRicetta1"
'exec Upload
rc = UL_dll.UpLoad(szFile)
Note: upload is always completed. If an error occurs during the processing or sending of a recipe element, the element is simply ignored, while the correct elements are still transferred. The Upload method returns TRUE in the absence of errors, FALSE otherwise.