Question
February 6, 2007 at 03:10 AM
a.vanstaveren1

Time Loop

by a.vanstaveren1 . Updated 19 years, 6 months ago

Cannot understand why first TextBox instruction in next code does not work.

Public Class Form1
Dim Value As Double
Dim Begin As Double
Dim Eind As Double
Dim Verstreken As Double
Dim Duur As Double = 5.45

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

TextBox1.Text = “Program runs”

Begin = DateAndTime.Timer

Do While Verstreken <= Duur Eind = DateAndTime.Timer Verstreken = Eind - Begin Loop TextBox1.Text = Str(Verstreken) End Sub End Class Can anyone give me an explanation pls.

This discussion is locked

All Comments