ImageEn, unit iexRegistryFunctions

TIEAcquireParamsHelper.SaveProperties

TIEAcquireParamsHelper.SaveProperties

Declaration

function SaveProperties(const aKey: string; aHKEY: HKEY = HKEY_CURRENT_USER): Boolean; overload;
function SaveProperties(const FileName: string; aSection: string): Boolean; overload;

Description

Save all properties for TIEAcquireParams to the registry or an INI file.

Note:
SaveProperties should be used in tandem with LoadProperties
SaveProperties is a helper method. You will need to add iexRegistryFunctions to your uses clause to access the method

Example

uses
  iexRegistryFunctions;
...

procedure TMainForm.FormCreate(Sender: TObject);
begin
  // Load acquisition settings from the registry
  ImageEnView1.IO.AcquireParams.LoadProperties( 'Software\MyCompany\MySoftware' );
end;

procedure TMainForm.FormClose(Sender: TObject; var Action: TCloseAction);
begin
  // Save acquisition settings to the registry
  ImageEnView1.IO.AcquireParams.SaveProperties( 'Software\MyCompany\MySoftware' );
end;

See Also

LoadProperties