Support Center

Delphi 7 and LogDuration

Donald Adams Dec 12, 2012 10:51PM EST

I posted an earlier question about how to retrieve the Log Duration. I am using a query to retrieve the specific fax I need the information from. I want to use the query to retrieve the information after a fax status has been 'Completed'. I am currently only trying to get the priority.

I have written the following but I still get an OLE error. There is only one item in the log query so I am using 0 for the log index. Still errors out on this line.

PathFaxPriority := (FaxMan.LogPriority[0]) ;

procedure TMainForm.FindAndReadLogEntry ;

ProcessFaxID := 59 ;

// find fax with specific faxid
FaxMan.LogQuery := 'FaxID = ' + IntToStr(ProcessFaxID) ;
FaxMan.Log := 5 ; // query log ;
FaxMan.LogSelectedRow := 0 ;

PathFaxPriority := (FaxMan.LogPriority[0]) ;

FaxStatusMemo.Lines.Add('') ; // blank line

FaxStatusMemo.Lines.Add('Priority = ' + IntToStr(PathFaxPriority )) ;

FaxStatusMemo.Lines.Add('') ; // blank line

end ;

1 Data Techniques Response and 1 Community Response

Up -1 Rated Down
DTI Support  Data Techniques Employee Dec 13, 2012 11:28AM EST


The most likely reason thats throwing an error is that there isnt a log entry at index 0 ie if your query failed to return any records. Whats the value of the LogEntries property after you do the query ?

Thanks for your interest in our products and please let us know if you have any questions.

Data Techniques Support

Up 4 Rated Down
Donald Adams  Data Techniques Employee Dec 13, 2012 03:19PM EST

I was using log index 0. There is only one row in the log query. Weird as it sounds the problem is no longer there.

I am now testing the rest of the log columns to see if I can retrieve all the values. FaxMan.LogSpeed still comes up as undeclared identifier: "LogSpeed" when I try to compile. I can live without the LogSpeed but I would like to retrieve it. LogSpeed does not even come up as an acceptable property for FaxMan on my Delphi Active X installation. I see StatusConnectSpeed. It shows up but only returns a value of 0 so that can't be it as the Speed column says 12000.

This question is closed to new answers.

Contact Us