Have a look to how the generated code does this. Create a form with a grid on it, save it as txt file, then open in Notepad.
Sent from my iPhone On Jul 19, 2009, at 2:06 PM, EMERSON VIER <[email protected]> wrote: > > > The problem, is grid_click only work on default form > Emerson Vier > > From: rmrsoft <[email protected]> > Sent: domingo, 19 de julho de 2009 09:58 > To: [email protected] > Subject: [nsbasic-ce] Re: Grid click > > I don't have much experience of multiple forms, but if you want > multiple grids I find it easier to put them both on the same Form > and then use the MOVE command to decide which one is 'live' > > So you get: > > AddObject "grid","grid",9000,0,240,150 > AddObject "grid","grid1",9000,0,240,150 > > Then to use the first Grid use > > grid1.Move 9000 > grid.move 0 > > And to switch to the second grid > > grid.Move 9000 > grid1.move 0 > > Cheers > > Al > > --- In [email protected], "EMERSON VIER" <emersonv...@...> > wrote: > > > > I use the "AddObject" > > > > Sub Form1_Load() > > > > On Error resume next > > AddObject "grid","grid",0,0,240,150 > > If err Then > > MsgBox "Grid control not installed. Please check the Re adMe > file's section on ""Install Device Components"" for more > information.",,"Grid" > > Bye > > End If > > On Error Goto 0 > > > > > > grid.cols=3 > > grid.rows=4 > > > > grid.TextMatrix(0, 0) = "Kenny" > > grid.TextMatrix(1, 0) = "Carmen" > > grid.TextMatrix(2, 0) = "Kyle" > > grid.TextMatrix(3, 0) = "Eric" > &g > > > > [The entire original message is not included] > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nsb-ce" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nsb-ce?hl=en -~----------~----~----~----~------~----~------~--~---
