Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Required Fields?
Message
From
17/01/1997 09:57:51
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00017517
Message ID:
00017657
Views:
62
>>You can also do something like, in Lostfocus:
>>
>>if empty(field)
>> =messagebox('Must input value',etc)
>> nodefault
>> object.setfocus (back to field)
>>endif
>
>Hmm...I tried this and it worked. I tried the exact same code before without the 'nodefault' and it didn't work.

this is because when after your call to the set focus the execution returned to the lostfocus which continued to do what it should - lose the focus , when you speicify nodeafult it doesn't execute the default behaviour thus it doesn't loses focus

Arnon
Previous
Reply
Map
View

Click here to load this message in the networking platform