| | |
Form won't close
Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: Jan 2006
Posts: 8
Reputation:
Solved Threads: 0
There follows a fragment of a program in Borland C++:
void __fastcall TForm1::FormCreate(TObject *Sender)
{
Memo1->Clear();
ListBox1->Clear();
Memo1->Lines->LoadFromFile("c:\\blitz\\history.txt");
a=Memo1->Lines->Count;
x=0;
while (x<a)
{
str1=Memo1->Lines->Strings[x];
if (str1 != "")
{
DATA MANIPULATION HERE, THEN
if (ListBox1->Items->Count==0)
ListBox1->Items->Strings[0]=str3;
else
ListBox1->Items->Add(str3);
}
}
ListBox1->Items->SaveToFile("C:\\blitz\\history.txt");
Close();
}
The form does not close, but "history.txt" is OK.
Any notions?
Jim Taylor
void __fastcall TForm1::FormCreate(TObject *Sender)
{
Memo1->Clear();
ListBox1->Clear();
Memo1->Lines->LoadFromFile("c:\\blitz\\history.txt");
a=Memo1->Lines->Count;
x=0;
while (x<a)
{
str1=Memo1->Lines->Strings[x];
if (str1 != "")
{
DATA MANIPULATION HERE, THEN
if (ListBox1->Items->Count==0)
ListBox1->Items->Strings[0]=str3;
else
ListBox1->Items->Add(str3);
}
}
ListBox1->Items->SaveToFile("C:\\blitz\\history.txt");
Close();
}
The form does not close, but "history.txt" is OK.
Any notions?
Jim Taylor
![]() |
Similar Threads
- vb.net database connection (VB.NET)
- Creating strong AI (open source) (C++)
- Multi-line Tool/Tip Text (Visual Basic 4 / 5 / 6)
- searching and paging..plz help.. (ASP)
- MDI From Query (Visual Basic 4 / 5 / 6)
- Data Update Wall Smack (C#)
- Help me with this kind of error.. pls.. (ASP)
- Please check and provide solution for my code (ASP)
- change statement (JSP)
Other Threads in the C++ Forum
- Previous Thread: Inserting in a sorted linked list(sorted alphabetically)
- Next Thread: C++ - std::string input
| Thread Tools | Search this Thread |
api array arrays based beginner binary bitmap c++ c/c++ calculator char char* class classes code coding compile compiler console conversion convert count data database delete deploy developer dll download dynamiccharacterarray email encryption error file forms fstream function functions game generator getline givemetehcodez graph gui homeworkhelp homeworkhelper iamthwee ifstream input int java lib list loop looping loops map math matrix memory multiple news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference rpg sorting string strings temperature template text text-file tree url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets





