Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Column validation in grid
Message
From
11/07/2008 05:14:27
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
11/07/2008 03:46:37
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01330452
Message ID:
01330463
Views:
18
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform