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.

Dark GDK / dbEntry() - Duplicates and backspacing

Author
Message
bergice
12
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 18th Oct 2012 14:38
Hi, for me in DGDK 2.0 the dbEntry() function doesn't seem to work properly.

Whenever I type it adds the character twice so it ends up like this:

Quote: "HHeelloo wwoorrlldd.."


And the backspace function doesn't seem to work either.


Can anyone confirm this?
Rudolpho
13
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 23rd Oct 2012 14:13
Don't you have to call it with a boolean argument of true (or possibly integer 1) to use the backspace feature?

Also it might cause duplicates if you hold the keys long enough I guess. I haven't tried the DGDK function however so I'm not sure whether it works correctly or not.


"Why do programmers get Halloween and Christmas mixed up?"
bergice
12
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 24th Oct 2012 16:00
Quote: "Don't you have to call it with a boolean argument of true (or possibly integer 1) to use the backspace feature?"


Indeed, the function looks like this:


It defaults to 1.

The function seems to work okay except for the character duplicates, and I need to get a fix for that.
darkvee
13
Years of Service
User Offline
Joined: 18th Nov 2005
Location:
Posted: 27th Oct 2012 23:16
You could make a function that takes the next letter out from the old and add to the string to get what your wanting.

darkvee
Christopher03
6
Years of Service
User Offline
Joined: 11th Nov 2012
Location: United States
Posted: 11th Nov 2012 20:31
Here is how I coded my program. This is finished exactly as darkvee had mentioned.



~Loving Jesus Christ~
Christopher03
6
Years of Service
User Offline
Joined: 11th Nov 2012
Location: United States
Posted: 11th Nov 2012 20:36
My previous message did not post or is it being previwed?

~Loving Jesus Christ~
Hawkblood
9
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 13th Nov 2012 10:56

I use it like this and it works for me......

The fastest code is the code never written.

Login to post a reply

Server time is: 2019-09-18 12:54:14
Your offset time is: 2019-09-18 12:54:14