473,445 Members | 1,945 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

What is vbCrLf???

syedshaffee
Hey people,

Can some give me a simple explanation on
Expand|Select|Wrap|Line Numbers
  1. vbCrLf
  2.  
I Don't exactly known what it is used for
Sep 18 '12 #1

✓ answered by TheSmileyCoder

It stands for
vb: Visual Basic
Cr: Carriage Return
Lf: LineFeed

In the ole days of typewriters the carriage return means to move the carriage all the way back left.
Linefeed simply is to push the paper in the typewriter up a line, giving a new blank line.

For a bit more Detail:
Expand|Select|Wrap|Line Numbers
  1. vbCrLf = vbNewLine = chr(13) & chr(10)

On a interesting note you will find that Excel uses only chr(10) instead of the combination of the chr(13) and chr(10). I have on occasion when moving data back and forth between the Access and excel depending on how its done had to do a search and replace to get the conversion right.

3 58277
TheSmileyCoder
2,322 Expert Mod 2GB
It stands for
vb: Visual Basic
Cr: Carriage Return
Lf: LineFeed

In the ole days of typewriters the carriage return means to move the carriage all the way back left.
Linefeed simply is to push the paper in the typewriter up a line, giving a new blank line.

For a bit more Detail:
Expand|Select|Wrap|Line Numbers
  1. vbCrLf = vbNewLine = chr(13) & chr(10)

On a interesting note you will find that Excel uses only chr(10) instead of the combination of the chr(13) and chr(10). I have on occasion when moving data back and forth between the Access and excel depending on how its done had to do a search and replace to get the conversion right.
Sep 18 '12 #2
TheSmileyCoder You ROck???
Sep 18 '12 #3
TheSmileyCoder
2,322 Expert Mod 2GB
Thank you for those kind? words :)
Sep 18 '12 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Jason | last post by:
When users fill out my text area field, there is a chance that there will be no line feeds or cariage returns or spaces and just one really long word. THIS CAUSES A MAJOR PROBLEM! What I am trying...
2
by: Techy | last post by:
I have used thecode which is below to get x characters on to display <%= LEFT(rsName.Fields.Item("columnname").Value,50)%> It works fine but when I use this same code to get x characters plus...
6
by: Michael.McD | last post by:
Would anyone know how I might access to the vbCrLf constant. I'd like to use teh following bit of VB code in C#: strFoo.Text.Replace(vbCrLf, chr(10) ) Thanks in advance, Michael McD Ps...
0
by: Joe | last post by:
Hi, I have a simple form that does nothing but emails the whatever user entered in the form fields. The form is working fine and email sent. The problem I am having is in te string that forms...
4
by: Andyza | last post by:
I'm using FileSystemObject to open and write to a tab delimited text file. First, I connect to a database and select some data. Then I create the text file and insert each record in the text...
0
by: rsine | last post by:
I have created my first windows service and have found that it fails when I initially start it but when I immediately try to restart the service it starts. What could be causing this behavior? I...
1
by: developing | last post by:
Hello, This time I want to filter the 'browse for file' API so that certain drives/folders cant be accessed. Not sure how to go about this...here is the module I am currently using to browse...
14
by: dancer | last post by:
What is this? vbCrLf
3
by: wildman | last post by:
Is there any way for gridview cells to observe vbcrlf in the data? I attempted to do this, but it does not seem to work. Dim dgItem As GridViewRow For Each dgItem In gridCollaborator.Rows...
1
by: Jim in Arizona | last post by:
On one page I have a datalist where a message is bound to a label. On another page I have the datalist which allows for the insert of new message as well as being able to edit those messages. The...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.