Solved

C++ Builder Question

Posted on 2000-04-20
2
245 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_
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

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. …
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

707 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