Solved

C++ Builder Question

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

863 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

27 Experts available now in Live!

Get 1:1 Help Now