メソッドの条件を入力したい。最初に、変数「A」にデフォルト値 0000 を指定します。変数「B」はテキストボックスに入力として作成し、変数「N」は計算式として入力します。テキストボックスに数値を入力すると、直接「IF B = Length (1 )」の状態と、変数 A の値「000」を読み取り、式「N = A + B」に従います。. 最後に、ボタンを押すと、これらの計算結果が表示されます。,プログラムの構造は?私は以下に示す構造を持っていました。
Public Class uckondisi
#Region "variabel"
Private _bilangan As Integer = "0000"
Private _inputan As Integer = 0
#End Region
#Region "property"
Public Property bilangan As Integer
Get
Return Me._bilangan
End Get
Set(value As Integer)
Me._bilangan = value
End Set
End Property
Public Property inputan As Integer
Get
Return Me._inputan
End Get
Set(value As Integer)
Me._inputan = value
End Set
End Property
#End Region
Private Sub btnproses_Click(sender As System.Object, e As System.EventArgs) Handles btnproses.Click
If Me.txtinputan.Text = 1 Then
_bilangan = "000"
Me.txthasil.Text = inputan + bilangan
Else
end sub
end class