Bs2 DoEvents Code
Archiver
Posts: 46,084
Somebody know any information about processing events like Visual
Basic DoEvents for Basic Stamp application.
Thanks!!
Vanderson
Basic DoEvents for Basic Stamp application.
Thanks!!
Vanderson
Comments
It doesn't do 'Events'.
In VB, you are in a windowing environment, where
'events' are passed around to windows, so the
code for that window can respond and update the
window. It's inherently multi-tasking. You
have multiple windows, with one or more
window event-handler apps behind them.
The BS2 comes from an earlier processing model,
that of the single execution stream. Now, you
CAN implement a 'state machine' in PBasic, and
cycle the 'state machine' fast enough so all
'pseudotasks' get some time.
Like:
MyState = 1
StateMachine:
BRANCH MyState, (IdleTask, Task1, Task2, Task3)
IdleTask:
' Wait for time tick
GOTO StateMachine
Task1:
' Do task 1
GOTO StateMachine
'etc.
--- In basicstamps@yahoogroups.com, "kloggerr" <loggerr@b...> wrote:
> Somebody know any information about processing events like Visual
> Basic DoEvents for Basic Stamp application.
>
>
>
>
> Thanks!!
>
>
>
>
> Vanderson