Don't like ads? PRO users don't see any ads ;-)
Guest

help with code

By: a guest on Jul 1st, 2012  |  syntax: VisualBasic  |  size: 1.28 KB  |  hits: 24  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.     Dim ini As New Org.Mentalis.Files.IniReader(settingsf)
  2.         Dim x As New Integer
  3.         Dim y As New String("")
  4.         companycount = ini.ReadString("companies", "countotal")
  5.         x = companycount
  6.         Do While x >= 2
  7.                 y = ini.ReadString("list", x.ToString)
  8.                 companytxtbox.Items.Add(y)
  9.                 datagrid.Columns.Add(x, y)
  10.  
  11.                 Dim getcountbycompany As New Org.Mentalis.Files.IniReader(curshiftfile)
  12.                 Dim acounted As New Integer
  13.                 If datagrid.Columns.Contains(x) Then
  14.                     acounted = getcountbycompany.ReadString("count", y)
  15.                     Dim isit As New Boolean
  16.                     Dim colco As New Integer
  17.  
  18.                 Do Until isit = True
  19.                     colco = 0
  20.                     If (datagrid.Columns(colco).HeaderText = y) = True Then
  21.                         datagrid.Rows(datagrid.Rows.Count - 1).Cells(x - 2).Value = acounted
  22.                         isit = True
  23.                     Else
  24.                         If colco > 0 Then
  25.                             colco = colco + 1
  26.                         End If
  27.                         isit = False
  28.                     End If
  29.                 Loop
  30.  
  31.             End If
  32.             x = x - 1
  33.         Loop