Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Validate input into grid
Message
From
25/05/2005 17:36:53
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01017586
Message ID:
01017675
Views:
38
Chuck,
As I understand it's current record (append blank row). Directly check alias.field. ie:

if empty(myTable.field1) or empty(myTable.field2)
* message...

If multiple still you could use like that but with a scan...endscan. ie:

scan for recno() < 0
if empty(myTable.field1) or empty(myTable.field2)
* message...
*...
endscan

Cetin

>Cetin
>I have a blank grid and empty table that gets an append blank if the user clicks add. Buffering is set to 5, so there isn't any data in the recordsource until a tableupdate is called. I need to know if the user input anything before I let them save blank records (I think). Reflections appreciated.
>
>Chuck
>
>
>>>What is the best way to verify that a user entered something into a 2 column grid before doing tableupdate.
>>>
>>>Thanks, Chuck
>>
>>Chuck,
>>What do you mean? You could check getnextmodified() or directly control alias.fieldname for current record.
>>Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform