Note that there are some explanatory texts on larger screens.

plurals
  1. POVb.Net something that i want to fix in my function - Stopwatch
    primarykey
    data
    text
    <p>i make function that convert time string ("hh\:mm\:ss\,fff" - example:"00:00:00,100") to parts <Br> strTime = "00:00:00,100" = <br> <strong>h</strong> int = 0<br> <strong>m</strong> int = 0<Br> <strong>sec</strong> int = 0<Br> <strong>millisec</strong> int = 100<br> <br> <br> The function: <br></p> <pre><code>Public Function ShowInLabel(ByVal TEXT As String, ByVal time As String, ByVal startTime As Boolean) As Boolean On Error Resume Next Dim sss As String sss = time Dim start As String = StrReverse(sss) start = StrReverse(start.Substring(0, 3)) Dim s As Integer s = Integer.Parse(start) Dim secstart As String = StrReverse(sss).Substring(0, 6) secstart = StrReverse(secstart) Dim secs As Integer = Integer.Parse(secstart.Substring(0, 2)) Dim hurs As Integer = Integer.Parse(sss.Substring(0, 2)) Dim mins As Integer = Integer.Parse(StrReverse(StrReverse(sss.Substring(0, 5)).Substring(0, 2))) Dim stopWatch As New Stopwatch() stopWatch.Start() noh: If stopWatch.Elapsed.Hours = hurs Then GoTo yesh Else GoTo noh End If yesh: If stopWatch.Elapsed.Minutes = mins Then GoTo yesm Else GoTo yesh End If yesm: If stopWatch.Elapsed.Seconds = secs Then GoTo yess Else GoTo yesm End If yess: If stopWatch.Elapsed.Milliseconds &gt; s Or stopWatch.Elapsed.Milliseconds = s Then GoTo done Else GoTo yess End If done: If startTime = False Then Label1.Text = "" Else Label1.Text = TEXT End If Return True End Function </code></pre> <p><br> <br> example: <br></p> <pre><code>ShowInLabel("SubTitle", "00:00:00,100", True) </code></pre> <p>The Function Works , <br> but when the function runing the application is Stucked <strong>Till</strong> the function return true<br> Why it happening?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload