Solved

C++ Builder Question

Posted on 2000-04-20
2
204 Views
Last Modified: 2010-04-10
Would anybody know how to output the contents of a Linked list onto a different MDI Child form (Not open Yet).
Also do you know how to open a form for use and make it invisible when There are No instances of another Child form.

There are two details which I need to print on the one line:  Err Number and Err Description.

Any help is very much appreciated!! Cheers.
Elmo
0
Comment
Question by:Elmo_
2 Comments
 
LVL 1

Accepted Solution

by:
LordDragon earned 50 total points
ID: 2734759
Well, this is a vague question, so I'll answer it as best I can...

1) Place a memo on to the form, step through the list and output it to the text box

(assuming you are not using the STL ... )

memo1->Lines->Clear();
for (l = head_of_list; l; l = l->next)
   memo1->Lines->Append(l->text);

2) Set the Visible attrribute to false (Visible = false) and the form will
go away

form1->Visible = false;

3)

AnsiString s = AnseiString((int) ErrNumber) + ":" + ErrDescription;

then output s where and when you want to
0
 
LVL 3

Author Comment

by:Elmo_
ID: 2738899
Cheers,

Great help - I thought That you can not make an MDI Child Form Invisible though!!!

Cheers for the help!!

Elmo_
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now