Microsoft Visual Basic 6.0 for PC Logo
Anonymous Posted on Mar 22, 2009

Code of backspace in vb

I use the vbclrf for enter but i need backspace code in vb6.0

5 Answers

Anonymous

Level 1:

An expert who has achieved level 1.

New Friend:

An expert that has 1 follower.

Mayor:

An expert whose answer got voted for 2 times.

  • Contributor 1 Answer
  • Posted on Oct 10, 2011
Anonymous
Contributor
Level 1:

An expert who has achieved level 1.

New Friend:

An expert that has 1 follower.

Mayor:

An expert whose answer got voted for 2 times.

Joined: Oct 10, 2011
Answers
1
Questions
0
Helped
6293
Points
3

Private sub command1_click()if len(text1.text) = 0 thentext1.text = left$(text1.text, len(text1.text) -1)endifendsub

  • Anonymous Oct 10, 2011

    try this

  • Anonymous May 09, 2013

    Thankes alllllllllllllot of you...

×

ElDopa

Level 2:

An expert who has achieved level 2 by getting 100 points

All-Star:

An expert that got 10 achievements.

MVP:

An expert that got 5 achievements.

Vice President:

An expert whose answer got voted for 100 times.

  • Expert 295 Answers
  • Posted on Aug 24, 2009
ElDopa
Expert
Level 2:

An expert who has achieved level 2 by getting 100 points

All-Star:

An expert that got 10 achievements.

MVP:

An expert that got 5 achievements.

Vice President:

An expert whose answer got voted for 100 times.

Joined: Feb 07, 2009
Answers
295
Questions
0
Helped
128628
Points
906

There is no vbBackspace constant, but the ASCII value of backspace is 8, so you can use: "Chr(8)" to "display" a backspace (for example: strTest = "Hello" & Chr(8) ). You can see all the ASCII values and their corresponding characters here: http://www.asciitable.com/

Ad

Fred Block

Level 2:

An expert who has achieved level 2 by getting 100 points

All-Star:

An expert that got 10 achievements.

MVP:

An expert that got 5 achievements.

Vice President:

An expert whose answer got voted for 100 times.

  • Expert 289 Answers
  • Posted on Apr 23, 2009
Fred Block
Expert
Level 2:

An expert who has achieved level 2 by getting 100 points

All-Star:

An expert that got 10 achievements.

MVP:

An expert that got 5 achievements.

Vice President:

An expert whose answer got voted for 100 times.

Joined: Apr 21, 2009
Answers
289
Questions
1
Helped
167688
Points
608

Anonymous

Level 1:

An expert who has achieved level 1.

New Friend:

An expert that has 1 follower.

Mayor:

An expert whose answer got voted for 2 times.

  • Contributor 1 Answer
  • Posted on Nov 18, 2009
Anonymous
Contributor
Level 1:

An expert who has achieved level 1.

New Friend:

An expert that has 1 follower.

Mayor:

An expert whose answer got voted for 2 times.

Joined: Nov 18, 2009
Answers
1
Questions
0
Helped
6293
Points
2

I've been trying to backspace a character in the console (i.e. delete the rightmost character).

for me, using a console.writeline(chr(8).tostring) by itself only moves the cursor left, and the rightmost character is still there.

I've used the following which has the effect I want:
Dim bs As String
bs = Chr(8).ToString & Chr(32).ToString & Chr(8).ToString ' bksp & sp & bksp
console.writeline(bs)

is there another more direct way to backspace a character? -- without using sendkeys?

Bilal Kabeer Butt

Level 2:

An expert who has achieved level 2 by getting 100 points

MVP:

An expert that got 5 achievements.

Governor:

An expert whose answer got voted for 20 times.

Hot-Shot:

An expert who has answered 20 questions.

  • Expert 59 Answers
  • Posted on Jul 07, 2009
Bilal Kabeer Butt
Expert
Level 2:

An expert who has achieved level 2 by getting 100 points

MVP:

An expert that got 5 achievements.

Governor:

An expert whose answer got voted for 20 times.

Hot-Shot:

An expert who has answered 20 questions.

Joined: May 16, 2009
Answers
59
Questions
1
Helped
17284
Points
102

Use the following method i used to use it;
SendKeys "ENTER"
here is the list of codes for other keys
'HERE IS A LIST OF KEYS 'Backspace {BS} 'Break {BREAK} 'Caps Lock {CAPSLOCK} 'DELETE {DEL} 'Down Arrow {DOWN} 'END {END} 'ENTER {ENTER} or ~ 'Escape {ESC} 'Help {HELP} 'Home {HOME} 'Insert {INS} 'Left Arrow {LEFT} 'Num Lock {NUMLOCK} 'Page Down {PGDN} 'Page Up {PGUP} 'Print Screen {PRTSC} 'Right Arrow {RIGHT} 'Scroll Lock {SCROLLLOCK} 'Tab {TAB} 'Up arrow {UP} 'F1 - F16 {F1} - {F16} 'Shift + 'Ctrl ^ 'Alt %

Add Your Answer

×

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

6,303 views

Ask a Question

Usually answered in minutes!

Top Microsoft Computers & Internet Experts

Sudeep Chatterjee
Sudeep Chatterjee

Level 3 Expert

3269 Answers

Grand Canyon Tech
Grand Canyon Tech

Level 3 Expert

3869 Answers

Brad Brown

Level 3 Expert

19190 Answers

Are you a Microsoft Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...