home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / b / bbdo20s.zip / CUSTOM.PRG < prev    next >
Text File  |  1993-02-27  |  2KB  |  52 lines

  1. *****************************************************************************
  2. **-- Copyright 1993 B&B Systems DOALL                                       *
  3. **-- You can modify this file anyway you want                               *
  4. *****************************************************************************
  5.  
  6. **-- SAMPLE #1
  7. **-- The line below will search for a data base file called
  8. **-- Product.dbf, after entering <CTRL-F2>.  If found it will be displayed
  9. **-- on the screen.  After making ANY changes here, this file needs to be 
  10. **-- compiled with FoxPro to make an .FXP file.
  11. ON KEY LABEL CTRL+F2 DO filelook WITH 'PRODUCT',.t.,.t.
  12.  
  13.  
  14.  
  15. **-- SAMPLE #2
  16. **-- This sample shows you how to 1) activate a key (F5) to 2) call a 
  17. **-- separate program called backup.prg which in turn "RUNS" a BATCH file
  18. **-- in DOS called Backup.bat (see below).
  19. ON KEY LABEL F5 DO backup
  20.  
  21.  
  22. **-- SAMPLE #3
  23. **-- This sample activates a key (F4) to call the phone program to 
  24. **-- dial the phone (using any fields in your data file with "PHONE"
  25. **-- in the name), ONE RECORD at a time. 
  26. ON KEY LABEL F4 DO phone WITH 'ONE'
  27.  
  28.  
  29. **-- SAMPLE #4
  30. **-- This sample activates a key (F4) to call the phone program to 
  31. **-- dial the phone (using any fields in your data file with "PHONE"
  32. **-- in the name), FOR ALL SELECTED RECORDS.  If you want to use this 
  33. **-- function instead of the one above, asterisk(*) the one above, and
  34. **-- remove the asterisk here.
  35. *ON KEY LABEL F4 DO phone WITH 'ALL'
  36.  
  37.  
  38.  
  39.  
  40. **-- Sample #5
  41. **-- Use this to move data with one keystroke while in the browse screen.
  42. **-- the sample below will move data from a FIELD Called ACTIVITY1 (used 
  43. **-- to insert activity codes) to another field called ACTIVITY2, and
  44. **-- move whatever information that was in ACTIVITY 2 to ACTIVITY3. 
  45. **-- This assumes that your data base has threee fields called ACTIVITY1,
  46. **-- ACTIVITY2, and ACTIVITY3.
  47. **-- Note: if you insert the key word ALL after REPLACE, all records
  48. **-- in the data file would be changed.
  49. **-- ON KEY LABEL CTRL+F3 REPLACE ALL ACTIVITY3 WITH ACTIVITY2, ACTIVITY2 WITH ACTIVITY1  
  50.  
  51.  
  52.