Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cursors and Data Environments
Message
De
16/07/1998 10:37:58
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00118104
Message ID:
00118105
Vues:
17
>I have a read only grid that comes from a child table. In another post it was determined that I should use a cursor for the grid. I tried to stick this post in there, but I can't get to the post.
>
>Anyway, my question is: How do I put the cursor in the data environment if it doesn't exist at design time. If I don't put it in there, how do I make the relationship between the parent table and the cursor?
>
>Thanks,
>
>-Michelle

You don't need in this relationships. Actually, the code snippet should look like this:
*** move record pointer in clients tables (nav button or combo selection)
nId=clients.id
Select * From Trips Into Cursor curTrip Where Trips.clientid=nId

This is simplified code, in real situation you better CREATE CURSOR first, e.g. in Form.Init event and just repopulate it when clients pointer moved.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform