Page 1 of 1 1
Topic Options
#53700 - 2001-02-07 06:07 PM GET echos to GETS
Anonymous
Unregistered


Shawn,

I have been troubled with GET commands since I started with kix. I want to display an edit menu A thru J. GET user's selection, go erase their previous entry and GETS their new entry. Everytime, this results in the original GET being echo'd onto the GETS input. What am I doing wrong here?

code:
:EditUserInf
$INF=""
DIM $ARROW
$ARROW = "<----------"
$SPACE = " "
Color c+/n
AT(6,45) $ARROW + " A"
AT(7,45) $ARROW + " B"
AT(8,45) $ARROW + " C"
AT(9,45) $ARROW + " D"
AT(10,45) $ARROW + " E"
AT(11,45) $ARROW + " F"
AT(12,45) $ARROW + " G"
AT(13,45) $ARROW + " H"
AT(14,45) $ARROW + " I"
AT(15,45) $ARROW + " J"
AT(17,9) "Enter the letter of the field you wish to edit: " GET $INF

SELECT
CASE UCASE($INF) = "A"
Color n/n
$FNAME = ' '
AT(6,5) 'First Name: '$FNAME
AT(6,5) 'First Name: ' GETS $FNAME
$key = 'FNAME'
$string = $FNAME
$nul = WriteProfilestring($filename, $section, $key, $string)




Top
#53701 - 2001-02-07 08:25 PM Re: GET echos to GETS
Anonymous
Unregistered


I had the same problem .. try putting this line just before your gets statement

$rc = sendkeys("{BACKSPACE}")

Top
#53702 - 2001-02-07 08:27 PM Re: GET echos to GETS
Anonymous
Unregistered


Still, there are others with same issue...

Bryce, Shawn, you guys out there?

http://kixtart.org/board/Forum1/HTML/000323.html

------------------
"... remove the blinders..... think.... outside of the box."

Top
#53703 - 2001-02-07 08:27 PM Re: GET echos to GETS
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
This is a bug in kix when running on win9x computers. It does not happen when running NT

Bryce

[This message has been edited by Bryce (edited 07 February 2001).]

Top
#53704 - 2001-02-08 02:32 PM Re: GET echos to GETS
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Hey Paul...

I don't have a Win9x box to try this - but what happens if you place a FLUSHKB just before your GETS ?

Shawn.

[This message has been edited by Shawn (edited 08 February 2001).]

Top
#53705 - 2001-02-08 05:25 PM Re: GET echos to GETS
Anonymous
Unregistered


flushkb does not work. I can't even get it to clear if I call another kix session. the only way I have been able to fix it is by putting this command before every gets statement if I have used a get statement.

$rc = sendkeys("{BACKSPACE}")

Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 2870 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.057 seconds in which 0.029 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org