| View previous topic :: View next topic |
| Author |
Message |
Giovanni Filippini Guest
|
Posted: Mon Feb 23, 2004 7:33 pm Post subject: stringgrid saved on Paradox/Delphi6 |
|
|
Hope in the right Group,
Hello to the Group,
I am new to this problem:
I need to save a stringgrid on a Paradox record (and reload).
What kind of field should I define, and how to save (and reload)
the grid ? any example ?
Thank you all for any HELP.
Giovanni.
|
|
| Back to top |
|
 |
Bill Todd (TeamB) Guest
|
Posted: Mon Feb 23, 2004 9:06 pm Post subject: Re: stringgrid saved on Paradox/Delphi6 |
|
|
All of the data in a StringGrid is strings so you need a table with
one column for each column in the StringGrid. To save the data you
will insert one row into the table for each row in the StringGrid.
--
Bill (TeamB)
(TeamB cannot respond to questions received via email)
|
|
| Back to top |
|
 |
Giovanni Filippini Guest
|
Posted: Tue Feb 24, 2004 10:09 am Post subject: Re: stringgrid saved on Paradox/Delphi6 |
|
|
Thanks for your reply, Bill,
My problem is : I do not know how many rows I will nedd for
the stringGrid, also I could have many records needing a
stringgrid embedded; I wonder if I can save/load in BLOB format.
In such matter I am beginner.
Regards, Giovanni.
|
|
| Back to top |
|
 |
Bill Todd (TeamB) Guest
|
Posted: Tue Feb 24, 2004 2:21 pm Post subject: Re: stringgrid saved on Paradox/Delphi6 |
|
|
If there is a way to do that I do not know what it is. You might try
the vcl.components.writing group if you do not get an answer here.
To save your StringGrid in a table all you need is a detail table for
the StringGrid data. That way you can loop through the StringGrid rows
and add as many rows as necessary to the detail table.
--
Bill (TeamB)
(TeamB cannot respond to questions received via email)
|
|
| Back to top |
|
 |
Giovanni Filippini Guest
|
Posted: Wed Feb 25, 2004 6:38 pm Post subject: Re: stringgrid saved on Paradox/Delphi6 |
|
|
Bill,
you are right ( as always ),
tables filtered and linked as detail
to the MasterTable is the best solution.
Thanks & regards,
Giovanni.
|
|
| Back to top |
|
 |
|