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 >
Wrap
Text File
|
1993-02-27
|
2KB
|
52 lines
*****************************************************************************
**-- Copyright 1993 B&B Systems DOALL *
**-- You can modify this file anyway you want *
*****************************************************************************
**-- SAMPLE #1
**-- The line below will search for a data base file called
**-- Product.dbf, after entering <CTRL-F2>. If found it will be displayed
**-- on the screen. After making ANY changes here, this file needs to be
**-- compiled with FoxPro to make an .FXP file.
ON KEY LABEL CTRL+F2 DO filelook WITH 'PRODUCT',.t.,.t.
**-- SAMPLE #2
**-- This sample shows you how to 1) activate a key (F5) to 2) call a
**-- separate program called backup.prg which in turn "RUNS" a BATCH file
**-- in DOS called Backup.bat (see below).
ON KEY LABEL F5 DO backup
**-- SAMPLE #3
**-- This sample activates a key (F4) to call the phone program to
**-- dial the phone (using any fields in your data file with "PHONE"
**-- in the name), ONE RECORD at a time.
ON KEY LABEL F4 DO phone WITH 'ONE'
**-- SAMPLE #4
**-- This sample activates a key (F4) to call the phone program to
**-- dial the phone (using any fields in your data file with "PHONE"
**-- in the name), FOR ALL SELECTED RECORDS. If you want to use this
**-- function instead of the one above, asterisk(*) the one above, and
**-- remove the asterisk here.
*ON KEY LABEL F4 DO phone WITH 'ALL'
**-- Sample #5
**-- Use this to move data with one keystroke while in the browse screen.
**-- the sample below will move data from a FIELD Called ACTIVITY1 (used
**-- to insert activity codes) to another field called ACTIVITY2, and
**-- move whatever information that was in ACTIVITY 2 to ACTIVITY3.
**-- This assumes that your data base has threee fields called ACTIVITY1,
**-- ACTIVITY2, and ACTIVITY3.
**-- Note: if you insert the key word ALL after REPLACE, all records
**-- in the data file would be changed.
**-- ON KEY LABEL CTRL+F3 REPLACE ALL ACTIVITY3 WITH ACTIVITY2, ACTIVITY2 WITH ACTIVITY1