>Hi All:
>
>I've started dabbling with a grid and I just need some help to get me up to speed.
>
>I want a simple form that'll create a cursor of filenames, populate a grid with the list and have the user click a check box in the grid next to any filename he wants to do an action on (the action itself is not important here, probably).
>
>So I created a form, dropped a grid with the followng attributes:
>
>
>
>recordtype=alias (I also tried 'table')
>recordsource = CURS_MATRIX
>
>
>I then set up two methods in the form
>
>
>INIT
>DODEFAULT()
>thisform.CreateMatrixCursor()
>thisform.grdMatrix.Refresh()
>
>CREATEMATRIXCURSOR
>ADIR(laMatrix,'c:\agri\poult\excel spreadsheets\agri????.xls')
>
>CREATE CURSOR CURS_MATRIX (cu_fname c (15))
>
>APPEND FROM ARRAY laMatrix
>
>ALTER table CURS_MATRIX ADD cu_lupd L
>
>
>Nothing appears in the grid!
>
>I'm probably doing something real stupid, but if I don't ask, I won't know.
>
>Thanks a lot.
>
>Yossi
You might want to try and move the code you have in the init to the load. Since the forms init will fire after the grids init.
Charles
"The code knows no master." - Chuck Mautz
"Everybody is ignorant, only on different subjects." - Will Rogers