Guest User

Untitled

a guest
Feb 18th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 1.03 KB | None | 0 0
  1. Private Sub btnToevoegen_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnToevoegen.Click
  2.         If txtToevoegen.Text = Nothing Then
  3.         Else
  4.             If rbtAchteraan.Checked Or rbtVooraan.Checked Then
  5.                 If _iVolgende Mod 10 = 0 Then
  6.                     ReDim Preserve _arrsLijst(_iVolgende + 9)
  7.                 End If
  8.                 If rbtAchteraan.Checked Then
  9.                     _arrsLijst(_iVolgende) = txtToevoegen.Text
  10.                 Else
  11.                     For i = 0 To (_iVolgende - 1)
  12.                         _arrsLijst(_iVolgende - i) = _arrsLijst(_iVolgende - (1 + i))
  13.                     Next
  14.                     _arrsLijst(0) = txtToevoegen.Text
  15.                 End If
  16.                 _iVolgende += 1
  17.                 _iIndex = 0
  18.                 txtToevoegen.Text = Nothing
  19.                 lblLijst.Text = _arrsLijst(_iIndex)
  20.                 gpbLijst.Text = "Element " + (_iIndex + 1).ToString + "/" + (_iVolgende).ToString
  21.             End If
  22.         End If
  23.     End Sub
Add Comment
Please, Sign In to add comment