Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to not allow the users to enter empty date in a grid
Message
 
 
To
02/05/1998 12:37:12
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00096512
Message ID:
00096531
Views:
14
Free Tables do not have field or row level rules. You can make the Valid() mehots of the date textbox in the grid return ! empty( this.Value )

> In a form, I have a grid(grid1) which contains a free table(table1). The first field is date. After I set:
>
>thisform.grid1.readonly=.f.
>select table1
>append blank
>
>The user can input data to this free table. If he inputted an empty data to the date field, my VFP software will have problems. So I want to not allow the user to input an empty date. He must enter a date before he save the tabel or move the cursor to the other field in the table. How can I do that?
>I have tried to make a database and add this table on it so that I can add ".not.empty" in the Field Validation. But I will have other problems if I use a database at this stage. I cannot find the Field Validation box in the Table Designer if my table is a free table but I can find it if my table is under a database. I don't know why.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform