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

Click here to load this message in the networking platform