Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Invalid Entry message after Valid Event
Message
From
29/07/1997 21:55:19
 
 
To
29/07/1997 06:24:43
Glenn Mcburney
Doe(Ni) Information Systems Unit
Belfast, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00041746
Message ID:
00042226
Views:
29
>>>my problem is when the valid event fires in my forms after my own error box appears a system error 'Invalid entry, press space to continue' displays in the main foxpro window and locks the screen until spacebar is pressed.
>>>
>>>This happened previously and was not solved until Windows 95 was re-installed.
>>>
>>>It happens in all forms for all foxpro systems on my PC that worked perfectly before and still work OK on all other PC's.
>>>
>>>The valid event uses keypress/keycode so field level validation only fires when enter is pressed, the problem does not arise when the valid event is called at form level using a global variable to mimic the field commit.
>>>
>>>The only other problem I have had recently which may/may not be related is losing the path to the VFP default resource file for storing screen positions etc.
>>>
>>>My own error messages come from the errormessage event then the 'unwanted' error appears.
>>Glenn,
>>
>>I suspect that this is on a date field and that you have not SET DATE to yoru format in the Form's Load event. SET DATE is scoped to the data session and it defaults to American, so with date set American {01/31/1997} is Jan 31, but if the user enters {31/01/1997} that is an invlaid date. The Invlaid entry is impossible to surpress for date data types when an invalid date has been entered.
>
>
>Jim,
>
>Thanks for your reply.
>
>My problem is happening on all fields types.
>
>Set Date is British. My date fields do not have any ControlSource - the Valid event checks CTOD(This.Value) against STRTRAN(This.Value,'/','') to pick up invalids.
>
>Notify is off (confirmed with SET('notify') in the valid event)
>The problem does not happen when Valid() is called at form level, returns .f. and the ErrorMessage event called.
>
>Any other suggestions would be much appreciated.
>
>Glenn
>DOE ISU (Belfast)

Hi,

I encountered this problem before. To get rid of the 'Invalid entry, press space to continue'', use return 0 in your valid event instead of return .f.

Hope this helps!

Destine
Have a Great Day !

Destine
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform