VB help 6.0
#1
VB help 6.0
I need some programming help
Im making a PWM program, it seems to work but freezes when its in a loop cause it can't exit properly.
Heres a breakdown
this is a breakdown of the program
On scrollbar_change (value of the scroll bar has changed)
Store new scrollbar value (from 1 to 100)
Loop
For i = 1 to scroll bar value
output high of 1 on the port
next i
for i = scroll bar value to 100
output high 0 on the port
next i
Do
but when a new value on the scrollbar is achieved (someone moves it in either direction) that breaks the loop, and the program goes back, gets the new scrollbar value, stores it, and loops again.
I need to somehow modify it so its always checking the scroll bar value to see if its changed from its previous state, if it has, it stops the loops, gets the new scroll bar value and does the loop over again with new values stored
Im making a PWM program, it seems to work but freezes when its in a loop cause it can't exit properly.
Heres a breakdown
this is a breakdown of the program
On scrollbar_change (value of the scroll bar has changed)
Store new scrollbar value (from 1 to 100)
Loop
For i = 1 to scroll bar value
output high of 1 on the port
next i
for i = scroll bar value to 100
output high 0 on the port
next i
Do
but when a new value on the scrollbar is achieved (someone moves it in either direction) that breaks the loop, and the program goes back, gets the new scrollbar value, stores it, and loops again.
I need to somehow modify it so its always checking the scroll bar value to see if its changed from its previous state, if it has, it stops the loops, gets the new scroll bar value and does the loop over again with new values stored
Thread
Thread Starter
Forum
Replies
Last Post
civic_integra
Interior - Audio - Security
11
01-Aug-2005 12:53 PM