Often I’m asked to demo Foxpro to people who’ve never seen it before. In one demo I show how simple it is to create a usable one to many form that allows multiple instances with collision detection and resolution.
Save the form as “form1”
Do this twice to get 2 forms: From the command window, DO FORM form1
Move the 2 instances of the form around so you can see both. Click on the navigate buttons to show that the one to many feature works fine.
Now navigate to the same customer record in each form, make a different change in each, and a messagebox comes up:
---------------------------
Data Conflict
A value has been changed by another user.
Field: CONTACT
Record Number: 4
Original Value: Thomas Hardy
Current Value: Thomas Hardy2
Your change: Thomas Hardy1
Do you want to overwrite the current value with your change?
(Choose 'Cancel' to restore the original value.)
Yes No Cancel
At this point, I ask the audience “How many lines of code are needed to create a one to many form with collation detection?” Also notice that you can create useful things in Foxpro without first having to create a project and decide what kind of project it’s going to be.
I’ve been giving this demo for over 10 years since VFP 3.0
Notes: