Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding new records in a grid
Message
From
18/04/2001 15:00:49
Elyse Pomerantz
Dynamic Data Concepts, Inc.
Brooklyn, New York, United States
 
 
To
18/04/2001 14:15:43
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00496799
Message ID:
00496912
Views:
7
Thanks for your response, but I don't think there is any order set here. When the user presses the down arrow (and the first field is not filled in), no new record is added at all. The cursor just goes to the first record in the file. This is similar to the behavior that occurs when the user adds a record, then tries to add another (by pressing the down arrow) without filling in any fields. It seems that the grid does not allow the user to enter more than one blank record. But it seems to only look at the first field.

>Hi Elyse,
>
>Sounds like this is an indexing issue where the key field(s) is blank and when navigating off the new record it causes the order to change. Try this without any index order set and see what happens. You can always restore the order later and requery/refresh to put things as they are supposed to go.
>
>>I have a grid where the user is allowed to add and edit records. I set the AllowAddNew propery to .T. and when the user presses the down arrow key on the last record, a new record is appended. However, this seems to work only when the first field is filled in. If the user enters data in another field and hits the down arrow key, the cursor jumps to the first record. Is this how it is supposed to work? Must the first field be filled in in order to add another record?
>>
>>Thanks,
>>Elyse
Elyse Pomerantz
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform