Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Visual Basic (https://www.askmehelpdesk.com/forumdisplay.php?f=469)
-   -   If I want to add new array in txtInput but first I give it=null, what statements? (https://www.askmehelpdesk.com/showthread.php?t=598403)

  • Sep 22, 2011, 10:27 AM
    Y_Nessi
    If I want to add new array in txtInput but first I give it=null, what statements?
    Private Sub cmdAdd_Click()
    k = k + 1
    If k > 10 Then
    MsgBox "Index out off bound!"
    k = 10
    Exit Sub
    End If
    a(k) = txtInput
    'set focus to txtinput
    txtInput.SetFocus
    txtInput.SelStart = 0
    txtInput.SelLength = Len(txtInput)
    End Sub

  • All times are GMT -7. The time now is 11:32 AM.