Hi Guys,

I'm a beginner. Can i ask, how to write the code for delete or backspac in a password if i key in a wrongly?

Example:

Password is 123456
But I accidentally keyed 124, so how do i delete/backspace 4 so i can key in 123456 again.

You mean, you wrote a program that's asking for a password and using the backspace and delete keys does not work in that program (or at least doesn't work when it's prompting for the password)?

So what does happen when you press backspace? Could you show us the code of the program then? Which functions/library are you using to prompt for the password?

Anyway, we need to see your code, especially where you take input for the password, and how the input stream is configured.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.