Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grids Views DblClick AfterRowColChange
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Grids Views DblClick AfterRowColChange
Divers
Thread ID:
00769688
Message ID:
00769688
Vues:
53
*---------------------------------------
I have 2 questions today...
and I think they are the same 2 questions that we all have...

1. Why'd it happen?
2. What can I do to get it to work as I thought it should?

I have a form with a pageform on it.
the 2nd page has a grid.
The grid has a memo field.
When I double click on the memo field it takes me to another form to process the writeup associated with the memo field.

The problem I am having is that I recently added a call to my save routine just before my call to the other form. The save routine is apparently leaving me on the last record of my view, and as a result my second form is opening up to the memo of that last record instead of the record that I performed the double click on.

I'm a little baffled for a couple reasons.
1. I get the current record info, including it's KEY value.
2. I pass these values into the second form for it to default to the desired record.
3. The grid has AfterRowColChange code and I now call that at the top of my dblclick event, just in case it doesn't fire if I'm on record X and double click on record Y
4. before the call to the save routine I save the current recno() of the view the grid is based on...I call the save routine...I reset the view's record pointer after the save is done...then I call the second form.

BTW - it works in the debugger but not at run-time


Any help would be appreciated.
TIA,
Rick Liebespach
*---------------------------------------
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform