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 / Input control for the User?

Author
Message
Sardine
19
Years of Service
User Offline
Joined: 5th Sep 2005
Location: U K
Posted: 21st Oct 2005 23:20
Hello again,

I've read through and followed many examples in the book "Beginners Guide to Dark Basic Programming" but I can't figure out how the user can control the cursor to delete what is input, for example the backspace delete does not work.

How is cursor control handed over to the user so typing mistakes can be rectified?

Failing that, how should a loop be written in response to a Y/N confirmation question be written please?

Example in the code bin



Thanks.
Freddy 007
19
Years of Service
User Offline
Joined: 30th Nov 2004
Location: Denmark
Posted: 22nd Oct 2005 00:14


I can delete letters just by pressing Backspace.

Sardine
19
Years of Service
User Offline
Joined: 5th Sep 2005
Location: U K
Posted: 22nd Oct 2005 00:17
Well the backspace isn't working on the script I am trying to write!
Sardine
19
Years of Service
User Offline
Joined: 5th Sep 2005
Location: U K
Posted: 22nd Oct 2005 00:29
Also I tried your test $ but it didn't work either. There doesn't seem a way that the user can change anything if a mistake is made. Here is a sample of the program I am trying to create:
Sardine
19
Years of Service
User Offline
Joined: 5th Sep 2005
Location: U K
Posted: 22nd Oct 2005 01:37
Well I have cracked it now.... for the want of the use of backspace...

Taken ages and a little research to work it out.... Hope it'll make me a better programmer for it.
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 22nd Oct 2005 05:54
Quote: "I've read through and followed many examples in the book "Beginners Guide to Dark Basic Programming" but I can't figure out how the user can control the cursor to delete what is input, for example the backspace delete does not work. "


If you're using Darkbasic Pro and you've downloaded the latest update it's because of a bug.

http://forum.thegamecreators.com/?m=forum_view&t=62485&b=15
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 22nd Oct 2005 06:13
Quote: "how should a loop be written in response to a Y/N confirmation question be written please?"




TDK_Man

Sardine
19
Years of Service
User Offline
Joined: 5th Sep 2005
Location: U K
Posted: 22nd Oct 2005 21:28
thanks TDK

Have saved the code for the next time. Some reason the code I cracked never got through, so what do you think of this? Perhaps yours is much simpler...

Ye I have the latest DB Pro, and the backspace bug is very naughty!
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 22nd Oct 2005 21:36 Edited at: 22nd Oct 2005 21:38
Quote: "Ye I have the latest DB Pro, and the backspace bug is very naughty!"


I'm sure it'll be fixed on the next update... well... I HOPE it'll be fixed on the next update.

The source didn't work because you had newbie status... it looks like your newbie slap is gone though. Really it's best to use code snips.

[ code ]
Your code here.
[ /code ]

Just remove the spaces in the brackets and it'll look like this:

Hell Dragon
19
Years of Service
User Offline
Joined: 24th Jan 2005
Location: UK
Posted: 23rd Oct 2005 21:50
You can report this bug in the report bug forum

Dark Basic Pro Rulz!
Sardine
19
Years of Service
User Offline
Joined: 5th Sep 2005
Location: U K
Posted: 23rd Oct 2005 22:01
The bug seems to be known, and I'd have thought it would be important enough to fix right away...but who knows? I noticed in the Beginner's Guide the important key chart never included the backspace which I thought rather odd at the time!

Anyway not sure if people can read from the source button and was told about this litte trick concerning posting code:



So I reckon this is a good way to get confirmation...
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 23rd Oct 2005 23:04
Quote: "So I reckon this is a good way to get confirmation... "


Not to offend you... but TDK's works better.

Login to post a reply

Server time is: 2024-11-27 14:34:34
Your offset time is: 2024-11-27 14:34:34