Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
APPEND BLANK from inside a grid to another alias
Message
De
30/09/1996 00:05:59
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
APPEND BLANK from inside a grid to another alias
Divers
Thread ID:
00008807
Message ID:
00008807
Vues:
105
I have two grids on my form. One of the field is a listbox having a valid event that based on a certain condition need to add a record in the second grid.

In my valid event code, I change to my second grid alias before doing the APPEND BLANK. The problem is that even if I switch alias, because I am in a grid, the alias changes back to the first grid which forces the APPEND BLANK to add in the first grid instead of the 2nd.

Here's a sample of the code in my valid event of the listbox of the first grid.

IF condition...
SELECT alias of grid 2
APPEND BLANK
REPLACE ...
ENDIF

The SELECT alias of grid 2 works but before the APPEND BLANK can be executed, the alias is switched back to the alias of the first grid.

Is there a workaround for that?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform