Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Buffered data showing on users machine
Message
De
16/12/2006 03:27:10
Mk Sharma
Shrishti Solutions
Mumbai, Inde
 
 
À
15/12/2006 10:09:27
Mike Yearwood
Toronto, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01177968
Message ID:
01178259
Vues:
20
i have converted my code :

i placed code as below
in load event :
cursorsetprop("buffering",5,'inward')
cursorsetprop("buffering",5,'inward1')
in "ADD" command button
sele inward
** single records in this parent table, but i am using table buffering because if my record pointer move to next records it update the record to table so i am not using row buffering.
appe blank
repl reco1 with str(recno)+str(seconds(),10,3) && Records no -1
go recno()
sele inward1  && multiple records in this child table.
appe blank
repl reco1 with inward.reco1
go recno()
in "SAVE" command button
sele inward
tableupdate(.f.,.t.) && single record
sele inward1
tableupdate(.t.,.t.) && Multi records
after saving first invoice, if i add one more invoice by cliking on "ADD" button
sele inward
appe blank
repl reco1 with str(recno)+str(seconds(),10,3)   && Records no -2
it is showing me record no -2, but after tableupdate(.f.,.t.) it should be -1

should i use like :
sele inward
tableupdate(.t.,.t.) 
warm regards,
mk.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform