Login | |
|
 |
RE: How to stop a continuous loop w/ button - 6/19/2008 5:39:26 AM
|
|
 |
|
| |
Rischip
Posts: 502
Score: 2
Joined: 3/26/2007
Status: offline
|
Can you post the code? Setup the button to call a routine which sets a flag. In the loop check the value of the flag and if it is set then exit the routine. While True If Flag = False (Or True your choice) Then Exit Sub (Or Function) Do pingloop And so On Wend
_____________________________
Rischip Author of - The Grim Linker
|
|
| |
|
|
|
 |
RE: How to stop a continuous loop w/ button - 6/19/2008 6:14:50 AM
|
|
 |
|
| |
Rischip
Posts: 502
Score: 2
Joined: 3/26/2007
Status: offline
|
Need more code... I can't tell what taDisplay is. But you could try this. taDisplay.Value = machine & " <P style="color: red;">is unreachable.</P>" & vbCrLf & taDisplay.Value but you should probably be using innerhtml and not .Value
_____________________________
Rischip Author of - The Grim Linker
|
|
| |
|
|
|
 |
RE: How to stop a continuous loop w/ button - 6/19/2008 6:28:04 AM
|
|
 |
|
| |
Rischip
Posts: 502
Score: 2
Joined: 3/26/2007
Status: offline
|
I typoed taDisplay.Value = machine & " <P style=""color: red;"">is unreachable.</P>" & vbCrLf & taDisplay.Value or taDisplay.Value = machine & " <P style='color: red;'>is unreachable.</P>" & vbCrLf & taDisplay.Value
_____________________________
Rischip Author of - The Grim Linker
|
|
| |
|
|
|
 |
RE: How to stop a continuous loop w/ button - 6/23/2008 12:47:42 AM
|
|
 |
|
| |
Rischip
Posts: 502
Score: 2
Joined: 3/26/2007
Status: offline
|
You will need to change the html tag from a text area to something that supports HTML. A DIV should work in simlar fashion.
_____________________________
Rischip Author of - The Grim Linker
|
|
| |
|
|
|
|
|