Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I validate a value typed into a grid cell.
Message
From
25/09/2002 22:36:38
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
25/09/2002 22:25:43
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00704542
Message ID:
00704544
Views:
18
>How do I validate a value typed into a grid cell before passing to the next cell. The grid recordsource is a cursor with numeric values. I want to check each value typed and leave the focus on that cell if the value is invalid.
>
>Herman W.
* BeforeRowColChange
lparameters nColIndex
local ix,lnColIndex
for ix=1 to this.Columncount
 if this.Columns(ix).ColumnOrder = nColIndex
    lnColIndex = ix
    exit
 endif
endfor
with this.Columns(lnColIndex).Controls(2) && Not trustable all the time
 .Value = .Value
 if .Value ... && Check
    nodefault    && Not valid
*...
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