Solved

C++ Builder Question

Posted on 2000-04-20
2
234 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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

730 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