How to read ident and it's value from registry?

Posted by user367856 on Stack Overflow See other posts from Stack Overflow or by user367856
Published on 2010-06-16T03:25:31Z Indexed on 2010/06/16 3:42 UTC
Read the original article Hit count: 227

Filed under:

i have store a list of items from gridView into registry as below:

*

frmPOSConfigSet.tblCatItems.First;
while not frmPOSConfigSet.tblCatItems.Eof do begin
RegItemSetting.WriteString('stk Group\Candy', frmPOSConfigSet.tblCatItemsCODE.Text, frmPOSConfigSet.tblCatItemsSPHOTO.Text); frmPOSConfigSet.tblCatItems.Next;
end;

* [In Registry Editor]
stk Group
- Candy
-> YUPI_GUM_HB , c:\Users\chai\Pictures\POS Item Images\image1.jpg
-> YUPI_GUM_SBKISS , c:\Users\chai\Pictures\POS Item Images\image2.jpg

After i close the form and open again, all values in gridView is gone, how to retrieve the ident (eg. YUPI_GUM_HB) and it's value (eg.c:\Users\chai\Pictures\POS Item Images\image1.jpg) from registry to the gridView when load the form?

© Stack Overflow or respective owner

Related posts about delphi-7