home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / database / 9333 < prev    next >
Encoding:
Internet Message Format  |  1993-01-23  |  1.6 KB

  1. Path: sparky!uunet!psinntp!vaxa.hofstra.edu!accdak
  2. From: accdak@vaxa.hofstra.edu
  3. Newsgroups: comp.databases
  4. Subject: Another Foxpro Screen Builder Question
  5. Message-ID: <1993Jan20.220223.514@vaxc>
  6. Date: 20 Jan 93 22:02:23 EST
  7. Lines: 26
  8.  
  9. I used the Foxpro screen builder to create a grid (it's a calendar).  Each
  10. field in the grid is a field in a temporary database. The up arrow key moves
  11. the cursor to the field to the left.  Pressing the down arrow key moves the
  12. cursor to the field to the left. 
  13.  
  14. I wanted the down arrow to move the cursor into the field directly below in the
  15. grid.  Pressing the up arrow key would move the cursor into the field above.
  16.  
  17. I was able to do this with a WHEN clause which checks for a "screen index"
  18. or a mouse click and a function call (described below) in the VALID
  19. clause of each field in the grid.  It works very very slowly.  Has anyone
  20. done this or know where I can find code examples for this?
  21.  
  22. The VALID function checks to see checks for the last key pressed.  Based on
  23. that, the "screen index" is updated based on the current "screen Index".  d.
  24.  
  25. The WHEN clause checks to see if the "screen index" is the ok for the field or
  26. if the last key was actually a mouse click.  If the mouse was used, instead of
  27. the keyboard, a new "screen index"  is calculated from the screen position. 
  28.  
  29. The grid has 5 row and 7 fields in each row.  Is it just the size of the code
  30. which has to be run though which makes it so slow?  (I'm running Foxpro2 on
  31. a 486/25Mhz machine.
  32.  
  33. David     ACCDAK@vaxc.hofstra.edu         - Internet
  34.           ACCDAK@HOFSTRA                  - BITNET
  35.