2009年2月3日 星期二

彰商99題之8

image

image

Public Class Form1
    Dim a, s As Integer
    Dim z As String
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        For a = 65 To 90
            z = z & Chr(a)
        Next
        z = z & vbNewLine
        For s = 97 To 122
            z = z & Chr(s)
        Next
        TextBox1.Text = z
    End Sub

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        End
    End Sub
End Class

1 則留言:

  1. Z參數建議改用如Str1或myStr的參數名稱代替
    jack

    回覆刪除