Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
Difference in READ VALID and READ EVENT - see general thread
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
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement