Hello everyone, i am making an experiment, and i need to send this to 3 other people. But when i make an .exe the program doesnt' even work correctly....for instance, here is my code:
this will time a loop and display how long it took to cycle threw it...in Run time, i click it it says somtimes 6 seconds somtimes 7, and when i make an .exe it says .04984 or 1 second, whats up? is there anyway for me to fix it so it wont' do this?Code:Private Sub Command1_Click() Dim x As Single Dim i As Long x = Timer For i = 0 To 100000000 i = i + 1 Next i x = Timer - x MsgBox "The loop took " & x & " seconds." End Sub
Thanks for listening





Reply With Quote