Thanks for the reply but it did not help much if I can explain a bit more I
am trying to make a useless prog that will when the user inputs there name
and then clicks enter the message box will appear with "Hello And there name
>From the message box String I Think if I turn the Word HELLO into a String
so I Can then get it to appear in the message box with the name from the
edit box string below is the code I have been trying again thanks for any
help

 

void CMartinsDlg::OnEnter() 

{

            // TODO: Add your control notification handler code here

 

            UpdateData(TRUE); //get data from screen

 

            CString = strHello1; //create string

 

            strHello1 = m_strName; //turn input m_strName from edit box into
strHello1 string

 

            CString strHello; //create string

 

            strHello = "Hello"; //Turn word Hello into strHello string

            

            

 

 

            msgbox strHello & " " & strHello1;           //display message
box with data entered in edit box

 

}

 

But when I try to compile the program it comes back with errors

 

  _____  

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of
Matt
Sent: 05 June 2005 10:35
To: [email protected]
Subject: Re: [vbhelp] MessageBox

 

Martin try this in your code

msgbox OriginalString1 & " " & OriginalString2

Matt
----- Original Message ----- 
From: "martin195076" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Sunday, June 05, 2005 10:50 AM
Subject: [vbhelp] MessageBox


> i am just starting to learn programming with visual basic 6 i am 
> trying to get the data from two strStrings Into one message box i 
> think i have to create a new strString out of the original two But 
> cant get it to work can any one help please
> 
> 
> 
> 
> 
> 
> 
> '// =======================================================
>     Rules : http://ReliableAnswers.com/List/Rules.asp
>     Home  : http://groups.yahoo.com/group/vbHelp/
>     =======================================================
>     Post  : [email protected]
>     Join  : [EMAIL PROTECTED]
>     Leave : [EMAIL PROTECTED]
> '// =======================================================
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 
> 
> 
> -- 
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.323 / Virus Database: 267.6.2 - Release Date: 04/6/05
> 
> 



'// =======================================================
    Rules : http://ReliableAnswers.com/List/Rules.asp
    Home  : http://groups.yahoo.com/group/vbHelp/
    =======================================================
    Post  : [email protected]
    Join  : [EMAIL PROTECTED]
    Leave : [EMAIL PROTECTED]
'// =======================================================





  _____  

Yahoo! Groups Links

*       To visit your group on the web, go to:
http://groups.yahoo.com/group/vbhelp/
  
*       To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> 
  
*       Your use of Yahoo! Groups is subject to the Yahoo!
<http://docs.yahoo.com/info/terms/>  Terms of Service. 



[Non-text portions of this message have been removed]






'// =======================================================
    Rules : http://ReliableAnswers.com/List/Rules.asp
    Home  : http://groups.yahoo.com/group/vbHelp/
    =======================================================
    Post  : [email protected]
    Join  : [EMAIL PROTECTED]
    Leave : [EMAIL PROTECTED]
'// =======================================================
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/vbhelp/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to