hello

Tuesday, 17 July 2012

if statement and calculation In VB.NET

            Dim l1 As Label = row.FindControl("lblfactor")        
  
            If  l1.Text = "STD. CYCLE TIME" Then

                totstandcycletiem = (totstandcycletiem + (Convert.ToDecimal(t1)))

            End If

            If  l1.Text = "SYSTEM DOWN TIME" Then

                totsystemdowntime1 = (totsystemdowntime1 + (Convert.ToDecimal(t1)))

            End If

            If  l1.Text = "PERFORMANCE DOWN TIME" Then

                totperformancedt1 = (totperformancedt1 + (Convert.ToDecimal(t1)))

            End If

No comments:

Post a Comment