Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Column validation in grid
Message
De
11/07/2008 05:14:27
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
11/07/2008 03:46:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01330452
Message ID:
01330463
Vues:
17
>I check in my grid's text lostfocus if the entered code is in the library, if it is there, i put the corresponding codename in the 2nd column.
>
>If it is not found, I want the cursor to go back to that column until he inputs a valid code. How can I do this?
* Lostfocus
*YourCheckesult = ...
if !m.YourCheckResult
  NODEFAULT
  this.setfocus()
endif
Another alternative is BRCC of grid if you want to code at grid level. In that case be sure you call .Value = .Value for currrent control.

PS: I don't prefer using Valid event especially in a grid.

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