Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems with Grids
Message
From
01/12/1997 13:38:18
Michael Knelsen
Technology Management Corporation
Regina, Saskatchewan, Canada
 
 
To
01/12/1997 12:57:54
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00063026
Message ID:
00063089
Views:
54
>>Oh, ok. Sorry for misunderstanding. You have two options (at least): one
>>is to set the default value of that field so that it can't be invalid,
>>and the other is to set a record-level rule on your table so that you
>>can't save a blank field.
>
>Third option: Buffered table and a Save command button

If I have a default value, with a unique index on this field, and it is left blank, which I don't want, it will not allow me to enter any more information into the grid. Also, if I used a buffered table and a save button, I would have to use a DO WHILE loop to make sure that the record is not blank. The reason for the DO WHILE loop is that once they have clicked on the page and gotten around the valid() event, they can then click back into the grid on a completely different line. If at this time, a person was to click on the save button, and just check the current line, there would be problems. With the possiblity of the lines in the grid being huge, this would take to much processing time to run through all of the line to ensure that invalid data has not been entered.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform