I'm having a problem with my code, ok I explain me more. I have the next visual design:
In my SaveDialog button I have the next code (added on the "Exportar" button):
procedure Button2Click(Sender:TObject);
var
i: integer;
strT: string;
slst:TStringList;
begin
slst:=TStringList.Create;TryWithDBGrid1.DataSource.DataSetDo
begin
First;while not Eofdo
begin
strT:='"'+Fields[0].AsString+'"';for i:=1 to FieldCount-1do
strT:= strT+',"'+Fields[i].AsString+'"';
slst.Add(strT);Next;
end;First;
end;ifSaveDialog1.Execute(0)then
slst.SaveToFile(SaveDialog1.filename);Finally
slst.Free;End;
end;
And its save me only the DBGrid, but I wanna save the full file, I mean, the Columns and content of the DBGrid and the operation result (on the bottom).
Can anybody explain me how to do it or what I'm doing wrong, please?
Nothing is stopping you from continuing with your testing cadence.
If updates are released every 2 weeks instead of 4, and you test once every 4 weeks, the exact same amount of patches will still be available for you in those 4 weeks.
For example:
Before
4th week - patch 1, 2, 3, 4
After
2nd week - patch 1 and 2
4th week - patch 3 and 4
Still the same amount after 4.
Everyone else has said it. I'm gonna say it - you don't know what you're talking about.
I do. I have two laptops. One work, one personal. I have access to two more laptops - both personal. At home I manually update my personal laptop when I see on Neowin that there is an update - I carry on and only apply the updates when I am ready. My work one only updates when my workplace decides to send it - I carry on and only apply the updates (when they actually arrive, which is usually days after the release) when I switch off the laptop at the end of the day as usual. The two other personal laptops only get updated when I get to it which is rarely - the people who own them carry on using them until I get to it and update them.
All of the browsers on all laptops are configured to restore the tabs when launched.
Google and Microsoft have changed from 6 weeks to 4, and it looks like it's going to move to 2. None of these changes affect how any of these browsers on the laptops are used. Not one jot.
My advice to you is stop panicking whenever you see an update. Just carry on with what you're doing. This even benefits you in a way - from your comment you sound like you don't like the changes or the frivolous new features - great - then carry on as before!
Question
tetsu-kun
Hey guys.
I'm having a problem with my code, ok I explain me more. I have the next visual design:
In my SaveDialog button I have the next code (added on the "Exportar" button):
And its save me only the DBGrid, but I wanna save the full file, I mean, the Columns and content of the DBGrid and the operation result (on the bottom).
Can anybody explain me how to do it or what I'm doing wrong, please?
Thanks.
Regards.
Link to comment
https://www.neowin.net/forum/topic/1397048-delphi-problem-with-savetofile/Share on other sites
5 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now