Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Difference in READ VALID and READ EVENT - see general th
Message
From
12/08/1998 05:11:08
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00125886
Message ID:
00125893
Views:
12
>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

Read valid and read events are totally different (except names). In short I could say "read events" is something like saying "OK puzzle is ready for you, now go and process and come back here when you find a *clear events* somewhere then I'll let you go down the code and it's also your only ticket for liberty".
No more use of FP 2.x read - in practice, otherwise ported screen have read* properties (and if I'm not wrong, only "read events" which is similar just in name).
My practice on porting apps to VFP is writing them from scratch.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform