Editing strings in a file using pointers?

Posted by Scott on April 03, 2005

Hello,

I have a file storing records of special offers.

Offers_Rec=record
OfferName : string[20];
Discount : integer;

How do i:

Get a drop down box to list just the OfferNames that are in the file?

When an OfferName is selected from the dropdown, it is displayed in an editbox besides the dropdown so i can edit the name and replace the existing name in the file?

Get the discount relating to that specific Offername displayed in another edit box which also allows me to edit and replace the existing value in the file?

There are multiple records stored in the file, so im assuming i have to use pointers? If anyone can help me code this i'd appreciate it!

Yours,
Scott

Related Articles and Replies


 

Delphi Forum :: Tutorials :: Source code :: Tips