RCPUploadEx (function)

Syntax

RCPUploadEx (filename$[,[recipename$][,[mapname$] [,newname$]]])

Description

Uploads the specified Recipe to the specified Recipe Group using the specified Map.

Comments

The RCPUploadEx function takes the following parameters:

 

Parameter

Description

 

filename$

Required string containing the name of the Recipe Group file where the Recipe is located. The Recipe Group file must exist.

 

recipename$

Optional string containing the name of the Recipe to be Uploaded.

 

mapname$

Optional string containing the name of the Map to be used when Uploading the Recipe.

 

newname$

Optional string containing the name of the Recipe to be uploaded. You may use a new or existing Recipe name.

 

The value returned is one of the following constants.

 

RCP_SUCCESS

Function was successful.

 

RCP_PT_UNAVAIL

Point in recipe was disabled or does not exist.

 

RCP_NO_PERMISSION

Current user has no setpoint permissions for points in recipe.

 

RCP_VAL_OUTSIDE_RANGE

Value to be written to point in recipe is outside setpoint range.

 

RCP_FILER_ERR

Path or file not found

 

RCP_OLE_ERR

OLE error in execution.

 

RCP_UNKNOWN

Error not covered in one of the above.

Example

RCPUpload ("D:\Bread.rgp", "White", "Line1", "NewWhite")

More information

R