ImageEn, unit iexAcquire

TIEAcquireParams.SetSourceByStr

TIEAcquireParams.SetSourceByStr


Declaration

function SetSourceByStr(const sRawDeviceStr : string) : boolean;


Description

If you use FillListWithSources from your own code then the returned devices will be list of strings formatted as follows:

Device Name||Index of Location||API||Device Type

E.g. My Cool Scanner||3||TWN||SCN

You can use SetSourceByStr to activate a source with these raw device strings.


Example

procedure TForm1.btnAcquire(Sender: TObject);
begin
  // A listbox has been filled with devices using FillListWithSources
  if ImageEnMView1.MIO.AcquireParams.SetSourceByStr(Listbox1.Items[Listbox1.ItemIndex]) then
    ImageEnMView1.MIO.Acquire();
end;


See Also

 SetSource
 StrToAcquireSource