Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Khurram Tahir
  Where is Khurram Tahir?
 Karachi
 Pakistan
 Khurram Tahir
 Tags
Subject: Valid method and grid text1 of column1
Thread ID: 104434 Message ID: 104434 # Views: 1 # Ratings: 0
Version: Visual FoxPro 9 Category: Grids
Date: Wednesday, August 16, 2006 2:13:47 PM         
   


I have to check that if the valid value is present then lose focus from that column of the grid

For this i am checking in the Text1 valid event of Column1 by this way

IF THIS.Value = [M] OR THIS.Value = [ ]
RETURN .T.
ELSE
WAIT WINDOW "Only letter [M] is allowed in M/P column" NOWA
RETURN THIS && Option 1
ENDIF

IF THIS.Value = [M] OR THIS.Value = [ ]
RETURN .T.
ELSE
WAIT WINDOW "Only letter [M] is allowed in M/P column" NOWA
NODEFAULT && Option 2
ENDIF

In both ways it is jumping to next column or to next record

ENTIRE THREAD

Valid method and grid text1 of column1 Posted by Khurram Tahir @ 8/16/2006 2:13:47 PM
RE: Valid method and grid text1 of column1 Posted by Ken Murphy @ 8/16/2006 2:55:03 PM
RE: Valid method and grid text1 of column1 Posted by tushar @ 8/16/2006 8:52:07 PM