Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing Focus on a form
Message
From
07/05/2002 23:04:00
Mike Smith
Doncaster Office Services
Oakville, Ontario, Canada
 
 
To
07/05/2002 22:48:46
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00653825
Message ID:
00653831
Views:
27
Hi Manoj:

We visited your great country in 1985 and we will never forget it!

I have tried your code as below.

IF NKEYCODE = 13 && enter
SET EXACT OFF
LOCATE FOR UPPER(TEACHER) = UPPER(TRIM(MEM1))
IF FOUND()
THISFORM.GRDHILIT1.COLTEACHER.TEXT1.SETFOCUS()
ELSE
LOCATE FOR UPPER(TRIM(MEM1)) $ UPPER(TEACHER)
IF FOUND()
THISFORM.GRDHILIT1.COLTEACHER.TEXT1.SETFOCUS()
ELSE
WAIT WINDOW "Name not found"
GO TOP
THISFORM.GRDHILIT1.COLTEACHER.TEXT1.SETFOCUS()
ENDIF
ENDIF
ENDIF

In this case the name of the column is COLTEACHER and the name of the field is TEXT1.

This makes to difference.

I still get just a momentary focus on the grid and it returns back to the pattern box.

Mike Smith
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform