473,386 Members | 1,815 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Back Space textbox using Command_button

Wagsy
14
Hello Again,
i have a virtual keypad 0-9, i can type in stuff

text1.text = text1.text & "2"

when i press a command button,

how do i use the back space chr$08 to remove the last number entered?

i.e. a delete button?
Sep 7 '07 #1
4 1517
Killer42
8,435 Expert 8TB
... how do i use the back space chr$08 to remove the last number entered?
i.e. a delete button?
If it's definitely just the last digit, then simply remove the last character from the .Text property. For example...
Expand|Select|Wrap|Line Numbers
  1. text1.Text = Left(text1.Text, Len(text1.Text) - 1)
If you need to remove the last digit before the current insertion point (cursor) then it will be a bit more complex.
Sep 8 '07 #2
Wagsy
14
thanks very much, i'll give it a whirl.
Sep 8 '07 #3
Robbie
180 100+
If you need to remove the last digit before the current insertion point (cursor) then it will be a bit more complex.
Yep...

Expand|Select|Wrap|Line Numbers
  1. text1.Text = Mid(text1.Text, 1, text1.SelStart-1) + Mid(text1.Text, text1.SelStart + 1)
  2.  
;)
Sep 8 '07 #4
Wagsy
14
Yep.... thanks for you time......
Sep 12 '07 #5

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

Similar topics

11
by: PC Datasheet | last post by:
How do I get the Len function to count a space at the end of a string? For example, if I enter AB(space), how do I get Len to return 3 instead of 2? Thanks, Steve
4
by: Glenn M | last post by:
I have a shared XML file on a server . i also have one xslt file that performs a simple transform on in to view the data. now i want to have another page that lets users modify the shared xml...
29
by: Tom wilson | last post by:
I can't believe this is such an impossibility... I have an asp.net page. It accepts data through on form fields and includes a submit button. The page loads up and you fill out some stuff. ...
1
by: panche | last post by:
I'm developing a fairly simple user control that has two textboxes for date/time entry (a from date/time and a to date/time). One of my requirements is that there should be no button that sets...
1
by: Roy | last post by:
Hey All, Kind of a series of anomalies here with one root source, I believe. I have an editable, paging datagrid. 1.When one clicks "edit" textboxes open up on row x, HOWEVER, if one clicks...
3
by: Husam | last post by:
Hi EveryBody: I made project by Vb.Net which consist the following items: 1\ Textbox 2\Button 3\Listbox When you write any thing in the textbox and press the button any text written in...
4
by: *.dpG | last post by:
Hello I have problem with this... In textBox I have some words with space between for example asdf fhhhh jjjjjkkkkk oooooo and space is not same between all word. I try to have only...
5
by: superjacent | last post by:
I'm getting 'Out of Stack Space' error messages. The process involves two forms. Form A opens Form B in dialog mode and passes through OpenArgs. Form B contains a 'Tab' control having two...
3
Wagsy
by: Wagsy | last post by:
Hi All, I have a virtual keypad - say 0-9, when i press the buttons i want the sequence of keypresses to appear in a textbox. at the moment when i type them in they just overwrite each other. i want...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...

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.