ProT Posted April 28, 2006 at 02:32 PM Report #24791 Posted April 28, 2006 at 02:32 PM Boas Pessoal é o seguinte tenho uma checkbox e queria inserir o resultado do checked numa bd do tipo tenho um form com um checkbox e um botao imaginemos que o ponho o visto na checkbox e carregava no botao quando carregasse no botao queria conseguir guardar numa variavel se o checked ta a true ou a false dim variavel as ? if checkbox1.checked=true then variavel =? end if Nota: O programa ta a ser feito em Microsoft Visual Studio .NET 2003 Espero respostas Cumps
Tiago Salgado Posted April 28, 2006 at 02:38 PM Report #24793 Posted April 28, 2006 at 02:38 PM Poderás fazer da seguinte maneira por exemplo: Dim variavel as Boolean If checkbox1.Checked = True Then variavel = True Else variavel = False End If Dps é só guardares o estado da variavel na BD.
ProT Posted April 28, 2006 at 02:58 PM Author Report #24799 Posted April 28, 2006 at 02:58 PM Boas Funcionou na perfeição 😛 , obrigado Tiago Salgado Cumps
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now