home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / database / 9362 < prev    next >
Encoding:
Text File  |  1993-01-24  |  1.1 KB  |  41 lines

  1. Newsgroups: comp.databases
  2. Path: sparky!uunet!microsoft!wingnut!waynel
  3. From: waynel@microsoft.com (Wayne Lampel)
  4. Subject: Re: FOXPRO2: Question about defining Function Keys
  5. Message-ID: <1993Jan23.233012.24007@microsoft.com>
  6. Date: 23 Jan 93 23:30:12 GMT
  7. Organization: Microsoft Corp.
  8. References: <C17sI9.Bou@mach1.wlu.ca> 
  9. Distribution: usa
  10. Lines: 29
  11.  
  12. In article <C17sI9.Bou@mach1.wlu.ca> derwin@mach2.wlu.ca wrote:
  13. > I am trying to assign the FUnction keys to execute things like the
  14. > <New> <Cancel> <OK> push buttons that are defined in the Control
  15. > subscreen.
  16. > Can anyone think of a way to do this without repeating all the
  17. > code in each of these things.
  18. > Syntax is wrong, but
  19. > ON KEY F2 ???GOT <New>; KEYBOARD "chr(13)" 
  20. > Or some such thing.. I question whether ON KEY can be used 'cuz
  21. > it justs jumps, executes, then jumps back.
  22. > Any thoughts on this?
  23.  
  24. If the controls that you speak of are part of your application,
  25. something like the following should work (or perhaps I missed the point <g>).
  26.  
  27. ON KEY LABEL F2 DO f2prog
  28.  
  29.  
  30. PROCEDURE f2prog
  31.  
  32. _curobj = new_variable
  33. KEYBOARD CHR(13)
  34.  
  35. RETURN
  36.