Click to See Complete Forum and Search --> : Oh Please get me out of trouble please


Chale
March 29th, 1999, 03:48 PM
Help please


I am trying to read the text from the client area which is multiline edit control (MDI). Now I have a problem trying to use the GetLine method -> assertion arror is displayed. So can you tell me exacly how this could be done in better way.


Please you may send me the exact code if possible. The editor was created using

the aapplication wizard. So the idea is that after wrtting textb in the editor, I may be able to read it out. I made the button called read. when I press the button the text must be placed on the message box line at time until the end of the document. I mean when I press the button, first linbe from the editor is written in this box. When I press ok button on the box (message box) the next line is placed again... this is to be repeated until the end of all text in the edit control..



Thanx chale.

Allen
March 29th, 1999, 07:01 PM
The simplest way to do is creating a data member for your edit box. Use ClassWizard to create a CString variable for EditBox and don't set the max. characters if you like. By using DDX, you can call UpdateData() to retrieve all data from the edit box stored in the data member.


Good luck.


Allen