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

Thank for visiting my country. I would like you to revisit again. Lots of changes.

Try putting
NODEFAULT after THISFORM.GRDHILIT1.COLTEACHER.TEXT1.SETFOCUS()



>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
Manoj Karki
manoj0karki@yahoo.com
Nepal
Previous
Reply
Map
View

Click here to load this message in the networking platform