Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I validate a value typed into a grid cell.
Message
De
25/09/2002 22:36:38
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
25/09/2002 22:25:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00704542
Message ID:
00704544
Vues:
19
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform