What does & Chr$(13) & Chr$(10) means and do?
What does & Chr$(13) & Chr$(10) means and do?
What does & Chr$(13) & Chr$(10) means and do?
What does & Chr$(13) & Chr$(10) means and do?
What does & Chr$(13) & Chr$(10) means and do?
What does & Chr$(13) & Chr$(10) means and do? What does & Chr$(13) & Chr$(10) means and do? What does & Chr$(13) & Chr$(10) means and do? What does & Chr$(13) & Chr$(10) means and do? What does & Chr$(13) & Chr$(10) means and do? What does & Chr$(13) & Chr$(10) means and do? What does & Chr$(13) & Chr$(10) means and do? What does & Chr$(13) & Chr$(10) means and do?
What does & Chr$(13) & Chr$(10) means and do? What does & Chr$(13) & Chr$(10) means and do?
What does & Chr$(13) & Chr$(10) means and do?
Go Back  Xtreme Visual Basic Talk > > > What does & Chr$(13) & Chr$(10) means and do?


Reply
 
Thread Tools Display Modes
  #1  
Old 08-25-2003, 10:47 PM
loopers loopers is offline
Freshman
 
Join Date: Mar 2003
Posts: 26
Default What does & Chr$(13) & Chr$(10) means and do?


I would like to know in the code what does & Chr$(13) & Chr$(10) means? What is the function of this particular symbols and code? Thanks.
Code:
    WS.SendData GenerateMessageID(Mid(txtFrom, InStr(1, txtFrom, "@") + 1, Len(txtFrom))) & Chr$(13) & Chr$(10)
    WS.SendData "DATE: " & Format(Now, "h:mm:ss") & Chr$(13) & Chr$(10)
    WS.SendData "FROM: " & FROM & " <" & txtFrom & ">" & Chr$(13) & Chr$(10)
    WS.SendData "TO: " & MAIL_TO & " <" & txtTo & ">" & Chr$(13) & Chr$(10)
    WS.SendData "Reply-to: " & " <" & txtFrom & ">" & Chr$(13) & Chr$(10)
    WS.SendData "SUBJECT: " & txtSub & Chr$(13) & Chr$(10)
    WS.SendData "MIME-Version: 1.0" & Chr$(13) & Chr$(10)
    WS.SendData "Content-Type: text/plain; charset=us-ascii" & Chr$(13) & Chr$(10)
    WS.SendData Chr$(13) & Chr$(10)
    bar.Value = bar.Value + 45
    lblProgress.Caption = bar.Value & " %"
    Status.Text = "Sending data. (6 of 8)"
    pause 0.5
    WS.SendData txtBody & Chr$(13) & Chr$(10)
    log "Sending Message"
    WS.SendData Chr$(13) & Chr$(10) & "." & Chr$(13) & Chr$(10)
    log Chr$(13) & Chr$(10) & "."
Reply With Quote
  #2  
Old 08-25-2003, 10:52 PM
dirtysanchez's Avatar
dirtysanchez dirtysanchez is offline
Regular
 
Join Date: Aug 2003
Location: Melbourne, Australia
Posts: 52
Default

Quote:
Originally Posted by loopers
I would like to know in the code what does & Chr$(13) & Chr$(10) means? What is the function of this particular symbols and code? Thanks.
Code:
    WS.SendData GenerateMessageID(Mid(txtFrom, InStr(1, txtFrom, "@") + 1, Len(txtFrom))) & Chr$(13) & Chr$(10)
    WS.SendData "DATE: " & Format(Now, "h:mm:ss") & Chr$(13) & Chr$(10)
    WS.SendData "FROM: " & FROM & " <" & txtFrom & ">" & Chr$(13) & Chr$(10)
    WS.SendData "TO: " & MAIL_TO & " <" & txtTo & ">" & Chr$(13) & Chr$(10)
    WS.SendData "Reply-to: " & " <" & txtFrom & ">" & Chr$(13) & Chr$(10)
    WS.SendData "SUBJECT: " & txtSub & Chr$(13) & Chr$(10)
    WS.SendData "MIME-Version: 1.0" & Chr$(13) & Chr$(10)
    WS.SendData "Content-Type: text/plain; charset=us-ascii" & Chr$(13) & Chr$(10)
    WS.SendData Chr$(13) & Chr$(10)
    bar.Value = bar.Value + 45
    lblProgress.Caption = bar.Value & " %"
    Status.Text = "Sending data. (6 of 8)"
    pause 0.5
    WS.SendData txtBody & Chr$(13) & Chr$(10)
    log "Sending Message"
    WS.SendData Chr$(13) & Chr$(10) & "." & Chr$(13) & Chr$(10)
    log Chr$(13) & Chr$(10) & "."



chr$(10) is a carriage-return and chr$(13) is a line-feed character (or is it the other way around??!!)
Reply With Quote
  #3  
Old 08-25-2003, 11:33 PM
loopers loopers is offline
Freshman
 
Join Date: Mar 2003
Posts: 26
Default I know Chr(13) is a Carriage return but how about Chr$(13) ?

I know Chr(13) is a Carriage return but how about Chr$(13) ?
Reply With Quote
  #4  
Old 08-25-2003, 11:51 PM
J0n J0n is offline
Junior Contributor
 
Join Date: Jun 2003
Location: Australia
Posts: 241
Default

The $ just means to return a string value.
Reply With Quote
  #5  
Old 08-26-2003, 01:54 AM
loopers loopers is offline
Freshman
 
Join Date: Mar 2003
Posts: 26
Default Thanks :)

Thanks
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
I'm making a functtion reader. That means... Waleedco General 8 01-31-2003 08:12 AM
please help, whats the error msg means? adi123 Installation / Documentation 2 11-20-2002 10:31 PM
What &HFFFF means? bojanv55 General 11 02-01-2002 02:49 PM
Anyone know what this error message means? grashopper General 2 07-03-2001 02:03 PM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
What does &amp; Chr$(13) &amp; Chr$(10) means and do?
What does &amp; Chr$(13) &amp; Chr$(10) means and do?
What does &amp; Chr$(13) &amp; Chr$(10) means and do? What does &amp; Chr$(13) &amp; Chr$(10) means and do?
What does &amp; Chr$(13) &amp; Chr$(10) means and do?
What does &amp; Chr$(13) &amp; Chr$(10) means and do?
What does &amp; Chr$(13) &amp; Chr$(10) means and do? What does &amp; Chr$(13) &amp; Chr$(10) means and do? What does &amp; Chr$(13) &amp; Chr$(10) means and do? What does &amp; Chr$(13) &amp; Chr$(10) means and do? What does &amp; Chr$(13) &amp; Chr$(10) means and do? What does &amp; Chr$(13) &amp; Chr$(10) means and do? What does &amp; Chr$(13) &amp; Chr$(10) means and do?
What does &amp; Chr$(13) &amp; Chr$(10) means and do?
What does &amp; Chr$(13) &amp; Chr$(10) means and do?
 
What does &amp; Chr$(13) &amp; Chr$(10) means and do?
What does &amp; Chr$(13) &amp; Chr$(10) means and do?
 
-->