Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I reset record pointers in child tables at eof()
Message
De
29/02/2000 15:09:32
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
How can I reset record pointers in child tables at eof()
Divers
Thread ID:
00339362
Message ID:
00339362
Vues:
52
I have a simple form containing 2 fields from a parent table and 4 grids (child tables). I have the simple data navigation buttons on the form to scroll through the tables. I have modified the _datanav.vcx code to SKIP through the parent table as well as all four child tables. This works fine, my problem comes when I reach the end (EOF()) or beginning (BOF()) of the child tables displayed in the grids. I get error messages saying I have attempted to move the record pointer beyond the beginning or ending records.

I have tried to write IF statements (code below) to reset the record pointer to the top or bottom of the table upon reaching BOF() or EOF(), but I still get the error messages on the child grids.
THIS.Parent.BeforeRecordPointerMoved

SKIP -1 && parent table
	IF BOF()
		GO TOP
	ENDIF
SKIP -1 IN DEPBL && one of the 4 child tables
	IF BOF()
		GO TOP IN DEPBL
	ENDIF

THIS.Parent.RecordPointerMoved
THIS.Parent.EnableDisableButtons
How can I reset the record pointer in these child tables?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform