Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SetFocus Question
Message
From
23/02/1999 16:11:45
 
 
To
23/02/1999 15:31:41
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00190627
Message ID:
00190664
Views:
13
>>Hello everyone,
>>
>>I have the following code in the LostFocus Event of a textbox named "txtToday":
>>
>>IF SYS(11,THISFORM.txtToday.Value) > SYS(11,DATE())
>> =MESSAGEBOX("message")
>> THISFORM.txtToday.SetFocus
>>ENDIF
>>
>>How come it did not give object txtToday the focus? Am I missing something, or am I merely just losing my mind?
>>
>
>Add NODEFAULT before Setfocus.

It works, but WHY does it work? I do not get the logic. Would you please explain? I am probably just being dense.

regards,
Jim Edgar
Jurix Data Corporation
jmedgar@yahoo.com

No trees were destroyed in sending this message. However, a large number of electrons were diverted from their ordinary activities and terribly inconvenienced.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform