Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Control - Append a new record in the last grid row
Message
 
À
10/11/1998 15:05:22
Bruce Gilmour
Cal-Mour Consultants
Calgary, Alberta, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00156026
Message ID:
00156366
Vues:
34
>Colin - I didn't mention that in my original post but what I do to avoid moving the pojnter at all is as follows
>
>
>lcoldalias = ALIAS()
>USE polines AGAIN IN 0 ALIAS countlines
>SELECT countlines
>
>COUNT FOR countlines.idnumber = thisform.idnumber.value TO lnreccount
>SELECT (lcoldalias)
>USE IN countlines
>
>IF lnreccount = 0
>     *** Insert stuff here
>ENDIF
>
>*** Refreshes and so on
>
>
>I am copying this to Erik. HTH

Nice, but since the tables are buffered, allowing deletes on the child records throws a wrench into this. If my child table has 1 record that I delete and I haven't issued TABLEUPDATE then the COUNT on the USE AGAIN.... will return 1.
Colin Magee
Team Leader, Systems Development
Metroland Media Group Ltd.
Mississauga, Ontario, Canada

cmagee@metroland.com

Never mistake having a career with having a life.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform