PC Review


Reply
Thread Tools Rate Thread

Connecting Strings

 
 
Tom
Guest
Posts: n/a
 
      14th May 2006
Hi All,

How can I connect 2 line of strings, so my massage box will have lines.

i.e Data is missing!
check your entry



Thanks A lot,

Tom


 
Reply With Quote
 
 
 
 
Rick Brandt
Guest
Posts: n/a
 
      14th May 2006
Tom wrote:
> Hi All,
>
> How can I connect 2 line of strings, so my massage box will have
> lines.
> i.e Data is missing!
> check your entry


MsgBox "Data is Missing" & vbCrLf & "check your entry"

Actually in the specific case of a MsgBox you don't need both a Carriage Return
and a Line-Feed so these would also work...

MsgBox "Data is Missing" & vbCr & "check your entry"
MsgBox "Data is Missing" & vbLf & "check your entry"

....but when doing similar things in other contexts you do need both so I tend to
always use vbCrLf. It will not cause two lines in a MsgBox so is harmless.


--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com


 
Reply With Quote
 
Tom
Guest
Posts: n/a
 
      14th May 2006
Thank you Rick, working good
"Rick Brandt" <(E-Mail Removed)> wrote in message
news:9yG9g.5982$(E-Mail Removed)...
> Tom wrote:
>> Hi All,
>>
>> How can I connect 2 line of strings, so my massage box will have
>> lines.
>> i.e Data is missing!
>> check your entry

>
> MsgBox "Data is Missing" & vbCrLf & "check your entry"
>
> Actually in the specific case of a MsgBox you don't need both a Carriage
> Return and a Line-Feed so these would also work...
>
> MsgBox "Data is Missing" & vbCr & "check your entry"
> MsgBox "Data is Missing" & vbLf & "check your entry"
>
> ...but when doing similar things in other contexts you do need both so I
> tend to always use vbCrLf. It will not cause two lines in a MsgBox so is
> harmless.
>
>
> --
> Rick Brandt, Microsoft Access MVP
> Email (as appropriate) to...
> RBrandt at Hunter dot com
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fastest way to insert 6MB of strings into 64MB List of strings? DR Microsoft Dot NET 1 1st Dec 2009 12:24 PM
Is it simply that c# converts all strings coming in to double and strings going out to single? AAaron123 Microsoft C# .NET 3 23rd Feb 2009 01:08 PM
How to find number of pairs of strings from list of strings? greg_overholt Microsoft Excel Worksheet Functions 5 27th Jan 2006 10:42 PM
Make Word displays strings of text, not strings of code =?Utf-8?B?WGVybw==?= Microsoft Word Document Management 2 9th Dec 2004 10:35 AM
Where are Windows dialog strings and title strings stored? Bob Hiller Microsoft Windows 2000 Developer 0 1st Oct 2003 09:02 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:55 PM.