home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-386-Vol-2of3.iso / b / bbdo17s.zip / CUSTOM.PRG < prev    next >
Text File  |  1993-02-08  |  1KB  |  20 lines

  1. **-- Copyright 1993 B&B Systems DOALL
  2. **-- You can modify this file anyway you want
  3. **-- SAMPLE #1
  4. **-- The line below will search for a data base file called
  5. **-- Product.dbf, after entering <CTRL-F2>.  If found it will be displayed
  6. **-- on the screen.  After making ANY changes here, this file needs to be 
  7. **-- compiled with FoxPro to make an .FXP file.
  8. ON KEY LABEL CTRL+F2 DO filelook WITH 'PRODUCT',.t.,.t.
  9.  
  10. **-- Sample #2
  11. **-- Use this to move data with one keystroke while in the browse screen.
  12. **-- the sample below will move data from a FIELD Called ACTIVITY1 (used 
  13. **-- to insert activity codes) to another field called ACTIVITY2, and
  14. **-- move whatever information that was in ACTIVITY 2 to ACTIVITY3. 
  15. **-- This assumes that your data base has threee fields called ACTIVITY1,
  16. **-- ACTIVITY2, and ACTIVITY3.
  17. **-- Note: if you insert the key word ALL after REPLACE, all records
  18. **-- in the data file would be changed.
  19. **-- ON KEY LABEL CTRL+F3 REPLACE ALL ACTIVITY3 WITH ACTIVITY2, ACTIVITY2 WITH ACTIVITY1  
  20.