I haven't used dBase IV, but dBase III+ has an elaborate macro language. I used it a couple years ago to create a book indexing program. I'd be surprised if you couldn't do the same in dB IV.