Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
This.setfocus in valid method
Message
From
26/11/1996 19:07:01
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00013655
Message ID:
00013656
Views:
34
>to check for a duplicate code, i tried using this.setfocus in a valid method, but it doesn't seem to work.
>
>if !tableupdate()
> =messgebox('Duplicate code. Please reenter')
> this.setfocus()
>endif
>
>is there a better solution?

Have you tried RETURN .F.?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform