home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases
- Path: sparky!uunet!microsoft!wingnut!waynel
- From: waynel@microsoft.com (Wayne Lampel)
- Subject: Re: FOXPRO2: Question about defining Function Keys
- Message-ID: <1993Jan23.233012.24007@microsoft.com>
- Date: 23 Jan 93 23:30:12 GMT
- Organization: Microsoft Corp.
- References: <C17sI9.Bou@mach1.wlu.ca>
- Distribution: usa
- Lines: 29
-
- In article <C17sI9.Bou@mach1.wlu.ca> derwin@mach2.wlu.ca wrote:
- > I am trying to assign the FUnction keys to execute things like the
- > <New> <Cancel> <OK> push buttons that are defined in the Control
- > subscreen.
- >
- > Can anyone think of a way to do this without repeating all the
- > code in each of these things.
- >
- > Syntax is wrong, but
- >
- > ON KEY F2 ???GOT <New>; KEYBOARD "chr(13)"
- >
- > Or some such thing.. I question whether ON KEY can be used 'cuz
- > it justs jumps, executes, then jumps back.
- >
- > Any thoughts on this?
-
- If the controls that you speak of are part of your application,
- something like the following should work (or perhaps I missed the point <g>).
-
- ON KEY LABEL F2 DO f2prog
-
-
- PROCEDURE f2prog
-
- _curobj = new_variable
- KEYBOARD CHR(13)
-
- RETURN
-