I know that this has been discussed many times. I was recently reading the chatbox thread about it but it did not come up with a solution that i needed.
I have my code, it will currently remove 1 character from my text as it is supposed to. The only problem is that when i start typing again the value immeditly goes back to my Dbentry. I am not sure how i would set this up so that i get a value with the values removed. But when i start typing it starts from where i left off. Sorry it is kind of a confusing question. Here is my code i hope you guys can help me. I dont want text highlighting or anything else. Just to remove the characters.
// Make Text White
dbInk(dbRgb(255,255,255),0);
// If input has been received
if( dbScanCode() > 0 )
{
chatinput = dbEntry();
iLength = strlen(chatinput); chatinput[iLength - backspace] = '\0';
}
// Backspace
if( dbKeyState( 14 ) == 1 )
{
//dbClearEntryBuffer ( ) ;
backspace++;
}
dbText(45,514,chatinput);