Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Problems with an own input function

Author
Message
Mr X
19
Years of Service
User Offline
Joined: 25th Sep 2005
Location: Universe, milkyway, sol-system, Earth...
Posted: 20th Aug 2006 21:28 Edited at: 20th Aug 2006 21:29
Hi all.

Im trying to create an own input function, and it works quite good. But there is one problem: When you try to erase text, it will do it but sometimes it just stop and do nothing. I use this code to erase text:
. And I dont understand why, it should work. But it doesnt. What is wrong?

Daemon
18
Years of Service
User Offline
Joined: 16th Dec 2005
Location: Everywhere
Posted: 20th Aug 2006 22:47
Because backspace has it's own character. After a second this character will show up stopping the backspace. This works.



Jerok
19
Years of Service
User Offline
Joined: 7th May 2005
Location: Mars. Wait a sec I\'m on MARS. OMG
Posted: 20th Aug 2006 22:49
part of the problem is that the backspacekey is an entry so you are trying to delete an entry you just made and it just loops like this so you have to clear the entry buffer after you press backspace and move where you add to s$ after the backspacing code

code
Slayer93
20
Years of Service
User Offline
Joined: 5th Aug 2004
Location: I wish I knew
Posted: 21st Aug 2006 03:42
Or instead of using the wait command to pause your program you can delete two characters instead of one

Naruto is the ninja...not really

Mr X
19
Years of Service
User Offline
Joined: 25th Sep 2005
Location: Universe, milkyway, sol-system, Earth...
Posted: 21st Aug 2006 12:13
Thanks for all the replys. Now it works . I didn't know that backstab has it's own character.

Login to post a reply

Server time is: 2024-11-26 14:51:32
Your offset time is: 2024-11-26 14:51:32