Category Features, Object ProUdf

Function ProUdfReplace


Description
Replaces a UDF with a similar UDF (the two UDF's must use the same reference types).
Synopsis
#include <ProUdf.h>
ProErrorProUdfReplace(
ProGroup* udf
/* (In)
The UDF.
*/
ProUdfdata new_udf_data
/* (In)
UDF data describing the replacement UDF. The dimension display, scale, name, instance name and path can be set in this structure.
*/
ProGroup* replacement_udf
/* (Out)
The handle to the new replacement UDF.
*/
)
Returns
PRO_TK_NO_ERRORThe function succeeded.
PRO_TK_BAD_INPUTSOne or more input arguments was invalid.
PRO_TK_E_AMBIGUOUSCannot replace the current UDF with the new version because the reference scheme does not match.
PRO_TK_BAD_CONTEXTThe argument new_udf_data does not contain the name or path.
PRO_TK_CANT_OPENCannot access the new UDF .gph file at the provided path.

Manual References:

  1. Core: Features: Updating or Replacing UDFs
  2. Core: Features: Updating or Replacing UDFs