Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grids 101
Message
From
05/11/2003 16:36:14
 
 
To
05/11/2003 16:33:48
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00846808
Message ID:
00846810
Views:
23
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform