soXfoR Posted June 1, 2006 at 08:03 PM Report Share #30634 Posted June 1, 2006 at 08:03 PM Boas pessoal, Já ando aqui à dois dias à nora de como ao seleccionar uma celula numa datagrid em vb6, carregar o seu valor para uma variavel. 😄 Sabem como o fazer? Cumpz Link to comment Share on other sites More sharing options...
Asgorath Posted June 12, 2006 at 03:29 PM Report Share #32553 Posted June 12, 2006 at 03:29 PM A datagrid esta ligada ao MSRDC2. [vbcode] Dim rows As Long Dim desenho As String Dim ret As Long Dim chave_ As Long If Me.MSRDC2.Resultset.EOF Then Exit Sub rows = MSRDC2.Resultset.Bookmark - 2 MSRDC2.Resultset.MoveFirst MSRDC2.Resultset.Move rows desenho = Trim(MSRDC2.Resultset(0)) chave_ = Val(Me.MSRDC2.Resultset(6)) [/vbcode] Jorge "The Dark Side Clouds Everthing. Impossible To See The Future Is."My rig: Intel Core 2 Quad Q9450 | abit IP35P | 4G Kingston 800 Mhz | XFX GeForce 9800 GX2 1G ddr3 | 2X WD5000AAJS 500Gb Sata 2 | PSU 600W || Caixa El-Diablo | Creative XMod Link to comment Share on other sites More sharing options...
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