BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

stringgrid saved on Paradox/Delphi6

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Desktop)
View previous topic :: View next topic  
Author Message
Giovanni Filippini
Guest





PostPosted: Mon Feb 23, 2004 7:33 pm    Post subject: stringgrid saved on Paradox/Delphi6 Reply with quote



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





PostPosted: Mon Feb 23, 2004 9:06 pm    Post subject: Re: stringgrid saved on Paradox/Delphi6 Reply with quote



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





PostPosted: Tue Feb 24, 2004 10:09 am    Post subject: Re: stringgrid saved on Paradox/Delphi6 Reply with quote



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





PostPosted: Tue Feb 24, 2004 2:21 pm    Post subject: Re: stringgrid saved on Paradox/Delphi6 Reply with quote

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





PostPosted: Wed Feb 25, 2004 6:38 pm    Post subject: Re: stringgrid saved on Paradox/Delphi6 Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Desktop) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.