VB code for backspace

rafi2

Registered User.
Local time
Today, 06:41
Joined
Mar 21, 2005
Messages
35
Hi,

I'm doing some string contcatenation in my VB code for a report. I've used vbCrLf when I need a new line, and I'm wondering if there is a similar function that will do a backspace, ie remove the last character from the string?

My code would then look something like this:

ConcatenatedString = ConcatenatedString & backspaceFunction & NewText

Any help is appreciated!
 
How about the Left() or Right() function?
 
the ASCII code for Backspace is 8...

try:

NewString = String1 & Chr(8) & String2
 
Both ways worked...thanks for the help!
 

Users who are viewing this thread

Back
Top Bottom