Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Difference in READ VALID and READ EVENT - see general thread
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Difference in READ VALID and READ EVENT - see general thread
Miscellaneous
Thread ID:
00125886
Message ID:
00125886
Views:
54
Hi,

sorry for the cross posting from the general thread. but I thought that this would be a better place for my questions.I have a piece of code that goes like this:
---------
WHILE !quitevent &&main event loop
DO CASE
CASE menuevent
DO p_menuevent with ...... && process menu event
CASE windevent
DO p_windevent.... && process window event
OTHERWISE
READ VALID fndrdval() &&foundation read
ENCASE
ENDDO
....
....
FUNCTION fndrval
windevnt = .t.
RETURN
------------
What is the use of READ VALID as compared to READ EVENT?
I did some tinkering of my own (unfortunately my code is too
large and involves too many files to be posted here) got stuck at the READ VALID statement. The tracer will be stuck at READ VALID (looping over and over again at any knypress/mouse click) and then upon chancing on READ EVENT, I decided to try and my some freak chance,I got the whole code working.

Anyone has any ideas? Anyone encountered this problem during porting a FoxPro program from DOS to Windows?

Helpless
Ian
Next
Reply
Map
View

Click here to load this message in the networking platform