VCDeletePreset


Version:

9.0.1

Description:

Deletes a preset from a presets configuration file.

Declaration:

C/C++

extern "C" void WINAPI VCDeletePreset(short* iError, short iConfigFile, char* szPresetName);

Delphi

procedure VCDeletePreset(var iError: SmallInt; iConfigFile: SmallInt; szPresetName: PChar); stdcall;

ActiveX/COM

Sub DeletePreset(ByVal iConfigFile As Integer, ByVal szPresetName As String)

Parameters:

iConfigFile - an index to the presets file type:
0 - Print, Presets.vccfg
1 - Plot, Plot.vccfg
2 - PDF Export, PDF.vccfg
3 - Image Export, Graphics.vccfg
4 - XML Export, XML.vccfg
5 - Style Save, StyleOptions.vccfg
szPresetName - the name of the preset

Return Value:

None

iError Code:

0 - Success
1 - szPresetName not found
2 - Invalid iConfigFile index
3 - Cannot delete DEFAULT preset

Notes:

VCDeletePreset deletes a preset from the list of available presets. See VCAddPreset for discussion of how presets are used.

See Also:

VCGetPresetValue, VCGetCurrentPreset, VCEnumPresets, VCAddPreset, VCCopyPreset