Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grids 101
Message
De
05/11/2003 16:53:55
 
 
À
05/11/2003 16:36:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00846808
Message ID:
00846825
Vues:
24
Hi Chuck:

Thanks, but see my reply to Einar.

Thanks,

Yossi

>>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
>><\pre>
>>
>>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform