Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

vbCrLF

Status
Not open for further replies.

JackSkellington

Technical User
Jul 28, 2005
86
GB
I'm using the vbCrlf and the variable I am using now holds ? ?(I belive because it does not understand the vbCrlf although it is being used elswhere.

Any ideas how i can overcome this problem?
 
Can you provide an example so we can replicate your problem? Also, you might want to look into using ControlChars.NewLine rather than vbCrLf.


____________________________________________________________
Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]

Need help finding an answer? Try the Search Facility or read FAQ222-2244 on how to get better results.
 
How did you try to look at the variable's contents? Chr(13) Chr(14) (carriage return and line feed = new line) won't always display as a new line. In some environments, since the value can not be accurately displayed, a ? will be presented instead (or ?? for CRLF).

Anyways, the value that is in the variable is likely correct, just what ever tool you are looking at it with can not render it correctly.

-Rick

VB.Net Forum forum796 forum855 ASP.NET Forum
[monkey]I believe in killer coding ninja monkeys.[monkey]
 
I haven't yet understood what is the problem, but let me say something. To be sure, you have to "binary" look; the values to look for are 0x0D and 0x0C.

TG
 
Rick & TipGiver, CRLF is Chr(13) (0Dh) for CR and Chr(10) (0Ah) for LF


Hope this helps

[vampire][bat]
 
The immediate pane in the IDE may not be displaying things like you expect.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
earthandfire said:
Nope!!

Nearly, but not quite right: try 0D0Ah

:)
0x means HEX number. So 0A can be written as 0x0A or else 0AH or in VB &0A
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top