Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Master - Detail form. When to update key in details?
Message
 
To
26/09/1997 09:56:27
Shihchau Tai
Apic Systems Pte Ltd
Singapore, Singapore
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00051730
Message ID:
00051779
Views:
29
>Thx for your answer. You answered many of my questions and I appreciate it a lot.
>
>Judging from your answer, you don't seem to have used AllowAddNew before. If that is so, may I know how you add a new line to the grid in a master-detail form if the user doesn't like the idea of clicking a new button or remember a special key like {CTRL-INS} kind of thing? Can you give me some tips?
>
>
>Tai

Tai, you're right, I don't use the AllowAddNew. At least in 5.0 there were some problems, so I developed my own technique. When my users down-arrow on the last record, I do an insert with the primary and foreign surrogate keys and any other information (date added, user) that I want to add automatically. If they complete this record, they can continue to add. If not, then when they down-arrow again they are asked if they want the blank record. Any record added but not edited by the user (I use GetFldState) is deleted automatically.

HTH
Barbara
Barbara Paltiel, Paltiel Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform