Support Center

Fax ID after selecting log entry

Donald Adams Dec 06, 2012 02:43PM EST

Delphi 7
Active X

I am having trouble reading the FaxID after I have selected a log entry. SelectedFaxID always comes up 0. LoginIndex always changes like it should.

procedure TMainForm.FaxManClick(Sender: TObject);
var i : integer ;
begin

SelectedLogIndexEdit.Clear() ;
SelectedFaxIDEdit.Clear() ;

SelectedLogIndexEdit.Text := IntToStr(FaxMan.LogIndex) ;

SelectedFaxID := FaxMan.FaxLogID ;
SelectedFaxIDEdit.Text := IntToStr(SelectedFaxID) ;


end;

1 Data Techniques Response and 1 Community Response

Up -2 Rated Down
DTI Support  Data Techniques Employee Dec 06, 2012 03:46PM EST

Hi Donald,

The LofID(idx) property is the one you want, if you want the ID for the selected row then use something like:

id := faxman1.LogID( faxman1.LogSelectedRow );

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

Sincerely,
Sean
Data Techniques Support

Up -2 Rated Down
Donald Adams  Data Techniques Employee Dec 07, 2012 11:05AM EST

Thank you. That was what I needed.

This question is closed to new answers.

Contact Us