PredictorClient.SaveModelToFile

Ee784762.c++_on(en-US,CS.10).gifEe784762.vb_off(en-US,CS.10).gif

Use this method to save the currently loaded model to a file.

Definition

Sub SaveModelToFile(sFilePath As String)

Parameters

sFilePath

[in] A String that contains the file name, extension, and path relative to the working directory of the calling process.

Return Values

None.

Error Values

This method sets the Number property of the global Err object to S_OK (&H00000000) to indicate success and to standard COM error values to indicate failure. For more information about standard COM errors, see Standard COM Errors. Additional information may be available using the global Err object. In particular, the Description property may contain a text description of the error.

Remarks

The directory where the file is saved must exist prior to the call.

A model must be loaded using the LoadModelFromDB or LoadModelFromFile methods before using the SaveModelToFile method.

For more information about memory ownership issues related to COM property and method parameters, see Managing COM Parameter Memory.

Example

oPredictorClient.SaveModelToFile "PredictionModel2.mdl"

See Also

PredictorClient Object

PredictorClient.LoadModelFromFile

PredictorClient.LoadModelFromDB


All rights reserved.