Zebra0.com

visual-basic examplesProfessor Joy: CA125 Class Work

Professor Joy: CA125 Class Work

Class Work Week 9

Example from the text: Inputs a word and looks for a "t" in the word
Public Class Form1
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim Word As String
        Word = InputBox("enter a word")
        Me.Text = FindT(Word)
    End Sub
    Function FindT(ByVal s As String) As Integer
        Dim P As Integer
        P = s.IndexOf("t")
        Return P
    End Function
End Class

This web site, and all pages therein, are the sole property and responsibility of Zebra0.com.
It is not endorsed, sponsored, or provided by or on behalf of Montgomery College.