You are on page 1of 13

Public Class FormSurvey 'state' Dim ciudad As String Dim male As Integer Dim female As Integer Dim Singles

As Integer Dim married As Integer Dim divorced As Integer Dim widow As Integer Dim free As Integer 'favorite sports' Dim Dim Dim Dim Dim Dim soccer As Integer basket As Integer volley As Integer athletic As Integer tennis As Integer others As Integer

'entertaiment' Dim Dim Dim Dim Dim watch As Integer listen As Integer go As Integer video As Integer other As Integer

'cities' Dim Dim Dim Dim Dim Dim Dim Dim Dim Dim Dim Dim Dim Dim Dim Dim Dim Dim Dim quito As Integer guayaquil As Integer porto As Integer esmeraldas As Integer rioba As Integer lata As Integer ibarra As Integer loja As Integer baba As Integer puerto As Integer puyo As Integer santa As Integer santo As Integer nueva As Integer ambato As Integer zamora As Integer tulcan As Integer guaranda As Integer macas As Integer

Private Sub CmdIngresar_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CmdIngresar.Click If OptSingle.Checked = True Then Singles = Singles + 1 txtsingle.Text = Singles ElseIf OptMarried.Checked = True Then

married = married + 1 txtmarried.Text = married ElseIf OptDivorced.Checked = True Then divorced = divorced + 1 txtdivorced.Text = divorced ElseIf OptWidow.Checked = True Then widow = widow + 1 txtwidow.Text = widow ElseIf OptFree.Checked = True Then free = free + 1 txtfree.Text = free End If If OptMale.Checked = True Then male = male + 1 txtmale.Text = male ElseIf OptFemale.Checked = True Then female = female + 1 txtfemale.Text = female End If If ChkSoccer.Checked = True Then soccer = soccer + 1 txtsoccer.Text = soccer End If If ChkBasket.Checked = True Then basket = basket + 1 txtbasket.Text = basket End If If ChkVoley.Checked = True Then volley = volley + 1 txtvolley.Text = volley End If If ChkAthletic.Checked = True Then athletic = athletic + 1 txtathletics.Text = athletic End If If ChkOther.Checked = True Then other = other + 1 txtother.Text = other End If

If ChkWatch.Checked = True Then watch = watch + 1 txtwatch.Text = watch End If If ChkVideo.Checked = True Then video = video + 1 txtvideo.Text = video End If If ChkListen.Checked = True Then listen = listen + 1 txtlisten.Text = listen End If If ChkGo.Checked = True Then

go = go + 1 txtgo.Text = go End If If ChkOthers.Checked = True Then others = others + 1 txtothers.Text = others End If If OptQuito.Checked = True Then quito = quito + 1 txtquito.Text = quito ElseIf OptGuayaquil.Checked = True Then guayaquil = guayaquil + 1 txtguayaquil.Text = guayaquil ElseIf OptPortoviejo.Checked = True Then porto = porto + 1 txtporto.Text = porto ElseIf OptEsmeraldas.Checked = True Then esmeraldas = esmeraldas + 1 txtesmeraldas.Text = esmeraldas ElseIf OptRiobamba.Checked = True Then rioba = rioba + 1 txtrioba.Text = rioba ElseIf OptLatacunga.Checked = True Then lata = lata + 1 txtlata.Text = lata ElseIf OptIbarra.Checked = True Then ibarra = ibarra + 1 txtibarra.Text = ibarra ElseIf OptLoja.Checked = True Then loja = loja + 1 txtloja.Text = loja ElseIf OptBabahoyo.Checked = True Then baba = baba + 1 txtbaba.Text = baba ElseIf OptPuerto.Checked = True Then puerto = puerto + 1 txtpuerto.Text = puerto ElseIf OptSanta.Checked = True Then santa = santa + 1 txtsanta.Text = santa ElseIf OptSanto.Checked = True Then santo = santo + 1 txtsanto.Text = santo ElseIf OptNueva.Checked = True Then nueva = nueva + 1 txtnueva.Text = nueva ElseIf OptAmbato.Checked = True Then ambato = ambato + 1 txtambato.Text = ambato ElseIf OptZamora.Checked = True Then zamora = zamora + 1 txtzamora.Text = zamora ElseIf OptTulcan.Checked = True Then tulcan = tulcan + 1 txttulcan.Text = tulcan

ElseIf OptGuaranda.Checked = True Then guaranda = guaranda + 1 txtguaranda.Text = guaranda ElseIf OptMacas.Checked = True Then macas = macas + 1 txtmacas.Text = macas End If End Sub Private Sub CmdSalir_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CmdSalir.Click End End Sub Private Sub CmdResultado_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CmdResultado.Click FraSurvey.Visible = False FraResults.Visible = True End Sub Private Sub FormSurvey_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load male = 0 female = 0 Singles = 0 married = 0 divorced = 0 widow = 0 free = 0 'favorite sports' soccer = 0 basket = 0 volley = 0 athletic = 0 tennis = 0 others = 0 'entertaiment' watch = 0 listen = 0 go = 0 video = 0 other = 0 'cyties' quito = 0

guayaquil = 0 porto = 0 esmeraldas = 0 rioba = 0 lata = 0 ibarra = 0 loja = 0 baba = 0 puerto = 0 puyo = 0 santa = 0 santo = 0 nueva = 0 ambato = 0 zamora = 0 tulcan = 0 guaranda = 0 macas = 0 End Sub Private Sub CmdRegresar_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CmdRegresar.Click FraSurvey.Visible = True FraResults.Visible = False End Sub End Class

Public Class FormSurvey 'state' Dim ciudad As String Dim male As Integer Dim female As Integer Dim Singles As Integer Dim married As Integer

Dim divorced As Integer Dim widow As Integer Dim free As Integer 'favorite sports' Dim Dim Dim Dim Dim Dim soccer As Integer basket As Integer volley As Integer athletic As Integer tennis As Integer others As Integer

'entertaiment' Dim Dim Dim Dim Dim watch As Integer listen As Integer go As Integer video As Integer other As Integer

'cities' Dim Dim Dim Dim Dim Dim Dim Dim Dim Dim Dim Dim Dim Dim Dim Dim Dim Dim Dim quito As Integer guayaquil As Integer porto As Integer esmeraldas As Integer rioba As Integer lata As Integer ibarra As Integer loja As Integer baba As Integer puerto As Integer puyo As Integer santa As Integer santo As Integer nueva As Integer ambato As Integer zamora As Integer tulcan As Integer guaranda As Integer macas As Integer

Private Sub CmdIngresar_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CmdIngresar.Click If OptSingle.Checked = True Then Singles = Singles + 1 txtsingle.Text = Singles ElseIf OptMarried.Checked = True Then married = married + 1 txtmarried.Text = married ElseIf OptDivorced.Checked = True Then divorced = divorced + 1 txtdivorced.Text = divorced ElseIf OptWidow.Checked = True Then widow = widow + 1 txtwidow.Text = widow

ElseIf OptFree.Checked = True Then free = free + 1 txtfree.Text = free End If If OptMale.Checked = True Then male = male + 1 txtmale.Text = male ElseIf OptFemale.Checked = True Then female = female + 1 txtfemale.Text = female End If If ChkSoccer.Checked = True Then soccer = soccer + 1 txtsoccer.Text = soccer End If If ChkBasket.Checked = True Then basket = basket + 1 txtbasket.Text = basket End If If ChkVoley.Checked = True Then volley = volley + 1 txtvolley.Text = volley End If If ChkAthletic.Checked = True Then athletic = athletic + 1 txtathletics.Text = athletic End If If ChkOther.Checked = True Then other = other + 1 txtother.Text = other End If

If ChkWatch.Checked = True Then watch = watch + 1 txtwatch.Text = watch End If If ChkVideo.Checked = True Then video = video + 1 txtvideo.Text = video End If If ChkListen.Checked = True Then listen = listen + 1 txtlisten.Text = listen End If If ChkGo.Checked = True Then go = go + 1 txtgo.Text = go End If If ChkOthers.Checked = True Then others = others + 1 txtothers.Text = others End If

If OptQuito.Checked = True Then quito = quito + 1 txtquito.Text = quito ElseIf OptGuayaquil.Checked = True Then guayaquil = guayaquil + 1 txtguayaquil.Text = guayaquil ElseIf OptPortoviejo.Checked = True Then porto = porto + 1 txtporto.Text = porto ElseIf OptEsmeraldas.Checked = True Then esmeraldas = esmeraldas + 1 txtesmeraldas.Text = esmeraldas ElseIf OptRiobamba.Checked = True Then rioba = rioba + 1 txtrioba.Text = rioba ElseIf OptLatacunga.Checked = True Then lata = lata + 1 txtlata.Text = lata ElseIf OptIbarra.Checked = True Then ibarra = ibarra + 1 txtibarra.Text = ibarra ElseIf OptLoja.Checked = True Then loja = loja + 1 txtloja.Text = loja ElseIf OptBabahoyo.Checked = True Then baba = baba + 1 txtbaba.Text = baba ElseIf OptPuerto.Checked = True Then puerto = puerto + 1 txtpuerto.Text = puerto ElseIf OptSanta.Checked = True Then santa = santa + 1 txtsanta.Text = santa ElseIf OptSanto.Checked = True Then santo = santo + 1 txtsanto.Text = santo ElseIf OptNueva.Checked = True Then nueva = nueva + 1 txtnueva.Text = nueva ElseIf OptAmbato.Checked = True Then ambato = ambato + 1 txtambato.Text = ambato ElseIf OptZamora.Checked = True Then zamora = zamora + 1 txtzamora.Text = zamora ElseIf OptTulcan.Checked = True Then tulcan = tulcan + 1 txttulcan.Text = tulcan ElseIf OptGuaranda.Checked = True Then guaranda = guaranda + 1 txtguaranda.Text = guaranda ElseIf OptMacas.Checked = True Then macas = macas + 1 txtmacas.Text = macas End If

End Sub Private Sub CmdSalir_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CmdSalir.Click End End Sub Private Sub CmdResultado_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CmdResultado.Click FraSurvey.Visible = False FraResults.Visible = True End Sub Private Sub FormSurvey_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load male = 0 female = 0 Singles = 0 married = 0 divorced = 0 widow = 0 free = 0 'favorite sports' soccer = 0 basket = 0 volley = 0 athletic = 0 tennis = 0 others = 0 'entertaiment' watch = 0 listen = 0 go = 0 video = 0 other = 0 'cyties' quito = 0 guayaquil = 0 porto = 0 esmeraldas = 0 rioba = 0 lata = 0 ibarra = 0 loja = 0 baba = 0

puerto = 0 puyo = 0 santa = 0 santo = 0 nueva = 0 ambato = 0 zamora = 0 tulcan = 0 guaranda = 0 macas = 0 End Sub Private Sub CmdRegresar_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CmdRegresar.Click FraSurvey.Visible = True FraResults.Visible = False End Sub End Class

You might also like