Skip to content

GetLogString

function

Delphi
function GetLogString (Value: TLogType): string;
C++Builder
System::UnicodeString __fastcall GetLogString(TLogType Value);
C#
public string GetLogString(TLogType Value);
VB.NET
Public Function GetLogString(Value As TLogType) As String
C++/Qt
wchar_t * GetLogString (TLogType Value);

Returns as a string the TLogType value returned by the OnLog event, e.g.:

procedure TForm1.VideoGrabberLog (Sender: TObject; LogType: TLogType; Severity, InfoMsg: String);
var
  sLog: string;
begin
  sLog := VideoGrabber.GetLogString (LogType);
  Memo1.Lines.Add (sLog);
end;