elianeasmar
Well-known member
- Joined
- Oct 3, 2013
- Messages
- 76
- Programming Experience
- Beginner
Hello. I need your help please.
i have a form that contains "Sex" as a radio button.and i have a structure:
Public Structure _schoolinfo
Public Code As String
Public Name As String
Public PhoneNumber As String
Public Address As String
Public Sex As String
End Structure
And i am not using database to store the information.
my question is ,that i managed to save all the fields in the structure except the radio button(RDFemale--RDMale)
Does anyone know how to save the checked radio button in the structure?
I am saving the other fields like this:
_info = New _schoolinfo With _info
.Code = txtCode.Text
.Name = txtName.Text
.PhoneNumber = txtPhoneNumber.Text
.Address = txtAddress.Text
End With
txtCode
txtName
txtPhoneNumber
txtAddress
those are the one that the user enters in the app.
Thank you for your help
i have a form that contains "Sex" as a radio button.and i have a structure:
Public Structure _schoolinfo
Public Code As String
Public Name As String
Public PhoneNumber As String
Public Address As String
Public Sex As String
End Structure
And i am not using database to store the information.
my question is ,that i managed to save all the fields in the structure except the radio button(RDFemale--RDMale)
Does anyone know how to save the checked radio button in the structure?
I am saving the other fields like this:
_info = New _schoolinfo With _info
.Code = txtCode.Text
.Name = txtName.Text
.PhoneNumber = txtPhoneNumber.Text
.Address = txtAddress.Text
End With
txtCode
txtName
txtPhoneNumber
txtAddress
those are the one that the user enters in the app.
Thank you for your help
Last edited: