Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Code - How do you empty tab and enter keys from the buffer? 1

Status
Not open for further replies.

emaduddeen

Programmer
Mar 22, 2007
184
US
Hi Everyone,

Can you tell me how to empty tab key or enter key from the buffer?

Thanks.
Emad
 
Hi Emad,

What buffer? Keyboard buffer?

NewBuffer CSTRING(256)

NewBuffer = ALL('<0>', 256)

LOOP UNTIL KEYBOARD()
ASK

IF KEYCODE() = TabKey OR KEYCODE() = EnterKey THEN CYCLE.

NewBuffer = NewBuffer & KEYCODE()
END

PRESS(NewBuffer)

Read the HELP for more information.

Regards
 
Hi ShankarJ,

Thanks for the code. That was what I needed. Yes it was the keyboard buffer.

Truly,
Emad
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top