Shop OBEX P1 Docs P2 Docs Learn Events
VB 2008 with BS2 — Parallax Forums

VB 2008 with BS2

YoshtiYoshti Posts: 108
edited 2010-02-19 00:33 in General Discussion
Hi all,
I'm struggling with vb 2008.
Right now I got the vb2008 to talk back and forth with a BS2 no problems.
I have a major issue with looping.
My application has to loop continuously to read a bs2 and populate a form.
The only way I got it to work is using a TIMER event.
I have no idea if I'm doing it right or not.

If I use a button to loop, then no other events can be executed. it is stuck in that BUTTON Click event.
I've tried some examples from some sites but the LOAD event does not load and/or I get an error that my looping is not working or the right place.

While I populate the form1, I must be able to show other forms as well. E.I :
I have a Compass from Parallax. And On form1 I get the DIRECTION only as a number. But If I want , I LOAD form2 That pops in the middle showing a nice drawing of a COMPASS and show also with a NEDDLE, where I'm going, all this with keeping all other info up to date on form1. Then I can click something else that pops in the middle as well and show other graphic.

The problem is where in the world do I do the looping? Timer event works but it seems not right to me. Or is it ?
I come from QBASIC and some VB5 or 6 can't remember..smile.gif It just to show you I'm an OLD' FART ... LMAO.
Please help.

The old days, we had a MAIN code, and we had to load a form manually, and the main was where everything was controlled.
Now , VB2008 express is a totally new way... I don't get it... it used to be fun....

Cheers
Yosh

Comments

  • T ChapT Chap Posts: 4,223
    edited 2010-02-18 18:42
    I use Realbasic which is similar in these regards. When you use a timer, it does take over the app and shuts down the use of other buttons. On Realbasic you use scripts/threads, not timers when you want to have something running in the background. See if there is such a thing in VB. If not, migrating to realbasic is not too hard and you may like it better.
  • YoshtiYoshti Posts: 108
    edited 2010-02-19 00:33
    Hi Todd,
    Yes when using a TIMER event, all other buttons are functional. And that creates a loop function. So it works the way it supposed to.
    As for Realbasic. I read a bit about it. $$$ is involved, and I'm trying to cut as much as possible. Since I'll be spending here and there quite a lot... wiffy would kill me... !
    I'll check it out in more details..
    Thanks!
    Yosh
Sign In or Register to comment.