Topic: How to "see" table.id number?

hey guys, i need a way to "show" the current table id
In any other table entry i could just create a text box, and point it to the table.name but in case of table.id it doesnt' work, is there a workarround?

Re: How to "see" table.id number?

currently i am using sqlvalue from the selected record, but is there any other way to do this?

3 (edited by derek 2017-08-20 20:03:32)

Re: How to "see" table.id number?

Hi Vasco,
Please see the attached which may give you some ideas.  I wasn't sure if you meant the id in the table or the rowid in the tablegrid so I've shown both, just in case
Regards,
Derek

Post's attachments

Attachment icon vascorowid.zip 336.91 kb, 364 downloads since 2017-08-20 

Re: How to "see" table.id number?

You can also do the following to get the table Id


procedure Form2_OnShow (Sender: string; Action: string);
begin
    Form2.Edit1.Value := Form2.ButtonSave.dbGeneralTableId;   // Make sure you use the button definition which does the save action
end;

I put an example in Derek's project.

Post's attachments

Attachment icon vascorowid 2.zip 581.31 kb, 380 downloads since 2017-08-21 

Re: How to "see" table.id number?

oh, very nice, thanks!