If you only have an integer in your record and that is all you will have
just typecast the Integer as a TObject when you add it and typecast the
object to an Integer when you retrieve it.

Combo.Items.AddObject('id', TObject(MyIntValue));

and

MyIntValue := Integer(combo.items.objects[0]);

JED


>> New(pNewRec);
>> pNewRec^.ID:=rs.rdoColumns[0];
>> Combo.Items.AddObject('id',TObject(pNewRec));
>>
>>Cheers, Jeremy Coulter


---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to