Click here to Skip to main content
15,890,579 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Passing arguments to timer event Pin
Wendelius18-Jan-09 2:04
mentorWendelius18-Jan-09 2:04 
QuestionDeleting multiple lines from a .txt file. Pin
RPiskami17-Jan-09 18:55
RPiskami17-Jan-09 18:55 
AnswerRe: Deleting multiple lines from a .txt file. Pin
Wendelius17-Jan-09 22:32
mentorWendelius17-Jan-09 22:32 
AnswerRe: Deleting multiple lines from a .txt file. Pin
Fernando Soto18-Jan-09 5:40
Fernando Soto18-Jan-09 5:40 
AnswerRe: Deleting multiple lines from a .txt file. [modified] Pin
RPiskami18-Jan-09 10:44
RPiskami18-Jan-09 10:44 
QuestionHow to Add Carriage return line feed to string (globalization) Pin
Georg Kohler17-Jan-09 16:41
Georg Kohler17-Jan-09 16:41 
AnswerRe: How to Add Carriage return line feed to string (globalization) Pin
Wendelius17-Jan-09 22:21
mentorWendelius17-Jan-09 22:21 
GeneralRe: How to Add Carriage return line feed to string (globalization) Pin
Georg Kohler18-Jan-09 19:07
Georg Kohler18-Jan-09 19:07 
Actually there is a difference - at least it seems to me Roll eyes | :rolleyes:
ErrorMessage = "First Line" & vbCrLf & "second Line"
' This will produce a two line message
ErrorMessage = "First Line vbCrLf second Line"
' will not produce a two line message


(maybe replacing VBCrlf with something else would also work - but here is my solution so far)

LogMessage = "First Line \n second Line"
LogMessage = LogMessage.Replace("\n", Environment.NewLine)
MSGbox(Logmessage) ' will again produce a two line message


"First Line \n second Line"
is what get's stored as a resource - as you can see it will be easy to
change this into another language as you can add the line feeds wherever you need to.
In my code I also add Variables to the message - again this will allow for easy translation into another language.

A typical error message might look like this

" Error detected in line \VAR1 \n Dublicate \Var2 values detected!"


This might end up looking like this:
.....
Error detected in line 12
Dublicate N values detected!
....
GeneralRe: How to Add Carriage return line feed to string (globalization) Pin
Wendelius19-Jan-09 2:02
mentorWendelius19-Jan-09 2:02 
GeneralRe: How to Add Carriage return line feed to string (globalization) Pin
Luc Pattyn18-Jan-09 11:06
sitebuilderLuc Pattyn18-Jan-09 11:06 
GeneralRe: How to Add Carriage return line feed to string (globalization) Pin
Georg Kohler18-Jan-09 13:46
Georg Kohler18-Jan-09 13:46 
GeneralRe: How to Add Carriage return line feed to string (globalization) Pin
Luc Pattyn18-Jan-09 14:00
sitebuilderLuc Pattyn18-Jan-09 14:00 
QuestionProblem populating DataSet Pin
carrigart17-Jan-09 15:55
carrigart17-Jan-09 15:55 
AnswerRe: Problem populating DataSet Pin
N a v a n e e t h17-Jan-09 16:33
N a v a n e e t h17-Jan-09 16:33 
GeneralRe: Problem populating DataSet Pin
carrigart17-Jan-09 17:18
carrigart17-Jan-09 17:18 
GeneralRe: Problem populating DataSet Pin
carrigart17-Jan-09 19:42
carrigart17-Jan-09 19:42 
GeneralRe: Problem populating DataSet Pin
carrigart17-Jan-09 19:56
carrigart17-Jan-09 19:56 
AnswerRe: Problem populating DataSet Pin
Wendelius17-Jan-09 21:33
mentorWendelius17-Jan-09 21:33 
GeneralRe: Problem populating DataSet Pin
carrigart17-Jan-09 22:45
carrigart17-Jan-09 22:45 
GeneralRe: Problem populating DataSet Pin
Wendelius17-Jan-09 22:53
mentorWendelius17-Jan-09 22:53 
GeneralRe: Problem populating DataSet Pin
carrigart18-Jan-09 1:34
carrigart18-Jan-09 1:34 
GeneralRe: Problem populating DataSet Pin
Wendelius18-Jan-09 1:47
mentorWendelius18-Jan-09 1:47 
AnswerRe: Problem populating DataSet Pin
TheComputerMan18-Jan-09 12:26
TheComputerMan18-Jan-09 12:26 
QuestionVB web browser Pin
ragual17-Jan-09 15:50
ragual17-Jan-09 15:50 
AnswerRe: VB web browser Pin
Saul Johnson18-Jan-09 6:42
Saul Johnson18-Jan-09 6:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.