Path: utzoo!news-server.csri.toronto.edu!rutgers!sun-barr!apple!tahoe!jimi!sonny-boy.cs.unlv.edu!grover From: grover@sonny-boy.cs.unlv.edu (Kevin Grover) Newsgroups: comp.databases Subject: Re: dBase: Using the arrow keys Message-ID: <1991Mar13.004844.16507@unlv.edu> Date: 13 Mar 91 00:48:44 GMT References: <9103121653.AA13910@titanic.bostech.com> Sender: news@unlv.edu (News User) Reply-To: grover@sonny-boy.cs.unlv.edu (Kevin Grover) Organization: UNLV Computer Science and Electrical Engineering Lines: 29 In article <9103121653.AA13910@titanic.bostech.com>, traynor@bostech.com (Pat Traynor) writes: ) From: traynor@bostech.com (Pat Traynor) ) Subject: dBase: Using the arrow keys ) Date: Tue, 12 Mar 91 08:53:11 PST ) ) ) Hello all -- ) ) Can I program dBase to accept the arrow keys as input? My objective is ) to have my menu selections highlighted, and if the user presses the up ) or down arrow keys ( [A and [B ) the previous or next menu ) item becomes highlighted. ) ) In an unrelated item, my VGA color monitor supposedly has a palette of ) 256,000 colors. Is there any way (in dBase) for me to tap into this, ) or am I limited to the primaries? ) I know FOXBASE can, so I assume dBase can. I don't remember the exact names, but there is a command to read a key into an integer (returns the number of the key pressed). All of the Arrow keys have a number. I wrote some code that uses this and it works nicely. It should work in dbase as well. If this is not enough to get you going, let me know and I'll dig up an example. -- +-------------------------------------------------+----------------------+ | Kevin Grover UNLV Computer Science | Home of the | | grover@cs.unlv.edu Las Vegas, Nevada | Running REBELS | +-------------------------------------------------+----------------------+