We use cookies to give you the best possible experience on our site. Click here to find out more. Allow cookies
x
LOG IN HERE
Username
Password

arrow Register here

Forgotten password?

THE CHATTER BOX

 
  
  
  The Chatter Box : Blathering On
  
  
  
 
i have no idea what im doing by arty_farty on 27 March 2006 12:21pm
 
im doing this VB assignment and im stuck trying to get this running guy to stop then start up again. i can do the first bit but not the second. bugger bugger bugger...
 
Re: i have no idea what im doing by arty_farty on 27 March 2006 12:42pm
 
this is all the code i have so far.

Private Sub ChkFreeze_Click()
If ChkFreeze.Enabled Then
tmrTimer.Enabled = False
End If
End Sub

HEEELLPP!!!!
 
Re: i have no idea what im doing by julwis on 27 March 2006 3:22pm
 
You need to add something to store the time that you click the button, then a 'while' statement to check that a certain time has past before resetting tmrTimer.Enabled to true again.

My VB isnt so hot but it should look something like this

Private Sub ChkFreeze_Click()
(set variable here to getTime() )
If ChkFreeze.Enabled Then
tmrTimer.Enabled = False
End If
(create new 'while' statement here to check difference between current time and time stored above; when this exceeds a certain time then the while loop will be exited and then it can run a statement to set tmrTimer.Enabled to true, in which case the figure will run again.)
End Sub
 
Re: i have no idea what im doing by Miss-M on 28 March 2006 1:10pm
 
VB as in Victoria Bitter? Let me throw a shrimp on the barbie for ya too, arty. Cheers mate! :o)
 
Re: i have no idea what im doing by arty_farty on 28 March 2006 1:12pm
 
no VB as in Visual Basic. its a comp prog. its real groovy.
 
Re: i have no idea what im doing by Miss-M on 30 March 2006 12:32pm
 
Yeah, I knew it wasn't the beer. Just a joke Joyce!
 
Re: i have no idea what im doing by arty_farty on 30 March 2006 1:55pm
 
joyce????? yeah i know it was a joke. i split my sides open. hahahaha ha.
 



  Reply to this post:
 
 
  Username 
 
 
  Password 
 
 
 
 
  Register here
 

INSTRUCTIONS

Select a discussion theme.
Register (or log in if you have not yet done so).

To start a new discussion topic:

Write the name of the topic in the 'Subject' box.
Type your message in the larger box to contribute.
Click 'Submit'.

To join a discussion topic:

Click on the discussion topic of your choice.
Type your message in the larger box to contribute.
Click 'Submit'.

To edit your message:

You can edit a message at any time after posting it as long as you're signed in.
Click on the 'Edit your message' link above the message.
Make your desired changes.
Click 'Submit'.

If you find you don't want to change the message after all, click on 'Return without changes'.

To set a chatmark:

Register (or log in if you have not yet done so).
Click on the "Set chatmark" link on the Chatter Box pages. This will set the time at which you have logged in.
Click on the "Go to chatmark" link to see all messages posted since you set your chatmark.

You can set your chatmark at any time and as often as you like.