by Gaev » Thu Feb 12, 2009 11:19 am
Steven:
I don't believe you can do this directly ... each time you invoke a NeoBook Function, it is serviced in its own "space" (i.e. a separate instance) ... so variables are local to the space/instance.
I haven't tried this ... but you might be able to create a "pseudo client-server" environment by ...
- having a NeoBook (vbscript/javascript) Function "create the space/instance
- in the vbscript, you create the COM object
- then go into a "conditional loop"
---> sleep for a 300 msec
---> check NeoBook variables for "task requests"
---> perform any requests tasks ... via calls to other vbscript/javascript functions defined in the same NeoBook Function
One of the "requested tasks" would be "Please Quit Looping Now"
Perhaps advisable to try this out with a simple structure first ... i.e. have a NeoBook ListBox populate a NeoBook Variable ... which would be the one queried every 300 msec from the looping vbscript ... which in turn would just populate another NeoBook variable ... which was echoed in a NeoBook TextBox ... if that works, you can design/build your own client-server protocol for requesting/responding to "tasks".