Chit-Chat Chit-chat is for random, off-topic discussions that don't belong in the other forums.
Please, no car topics here.
Sponsored by:
Sponsored by:

VB help 6.0

Thread Tools
 
Search this Thread
 
Old 09-Mar-2005, 03:55 PM
  #1  
Registered User
Thread Starter
 
imported_loudsubz's Avatar
 
Join Date: Apr 2002
Location: Mississauga West Side
Posts: 11,206
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
imported_loudsubz is offline  
Old 09-Mar-2005, 08:52 PM
  #2  
Registered User
Thread Starter
 
imported_loudsubz's Avatar
 
Join Date: Apr 2002
Location: Mississauga West Side
Posts: 11,206
nm

got it all working great now, Im trippin, I dont even know VB that well and I made this wicked program
imported_loudsubz is offline  
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Sunny_SI
Engine
16
03-May-2010 07:32 PM
civicblack
Chit-Chat
3
03-Dec-2008 11:25 PM
imported_SpoonEr
Honda Civic Performance - JDM Discussion
8
12-Jan-2006 06:45 PM
civic_integra
Interior - Audio - Security
11
01-Aug-2005 12:53 PM
CiViC_GQ
Honda Civic Performance - JDM Discussion
7
23-Apr-2002 05:45 PM



Quick Reply: VB help 6.0



All times are GMT -4. The time now is 02:45 PM.