Dim DgA As String = DataGridView1.CurrentRow.Cells("年齢").Value.ToString Dim DgB As String = DataGridView1.CurrentRow.Cells("名前").Value.ToString Dim DgA As String = DataGridView1.CurrentRow.Cells("住所").Value.ToString Dim DgB As String = DataGridView1.CurrentRow.Cells("性別").Value.ToString
Dim DgA As String = DataGridView1.CurrentRow.Cells("年齢").Value.ToString Dim DgB As String = DataGridView1.CurrentRow.Cells("名前").Value.ToString Dim DgC As String = DataGridView1.CurrentRow.Cells("住所").Value.ToString Dim DgD As String = DataGridView1.CurrentRow.Cells("性別").Value.ToString
Dim DgB As String = DataGridView1.CurrentRow.Cells("性別").Value.ToString Msgbox(DgB)
Dim DgD As String = DataGridView1.CurrentRow.Cells("性別").Value.ToString MsgBox(DgD) IF DgD = "男性" Then DgD = 0 Else DgD = 1 End IF MsgBox(DgD)