Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GETNEXTMODIFIED with new records
Message
 
À
10/06/1998 17:29:19
Bruce Gilmour
Cal-Mour Consultants
Calgary, Alberta, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00106948
Message ID:
00106960
Vues:
27
>I am using GETNEXTMODIFIED in grids to scan changed records and use the data enetered to update fields in other files. The problem is, there can also be new records in the grid and when GETNEXTMODIFIED hits them, VFP tells me that buffering is not enabled (it is) What is the easiest way around this. I am trying to do it in one section of code. Do I have to code differently for new records? Any help appreciated

I am not sure I get the problem here. I can GetNextModified() without a problem. Here's what I did...
create table test (cTest1 C(10))
USE test SHARED
? cursorsetprop("Buffering", 5)
append blank
replace ctest1 with "Universal"
append blank
replace ctest1 with "Thread"
append blank
replace ctest1 with "Visual"
append blank
replace ctest1 with "Foxpro"
go top
? GetNextModified(0)
GO -1
? tableupdate()
? recno()
? GetNextModified(recno())
GO -2
? tableupdate()
? GetNextModified(recno())
GO -3
? tableupdate()
? GetNextModified(recno())
GO -4
? tableupdate()
? GetNextModified(recno()) &&Returned 0 -- no more new records
I grant u the code is somewhat heinous but it was, afterall, only a test. My point is that it worked with no problem.

Are you doing something conceptually different?
Menachem Bazian, CPA
President
BC Consulting Services, Inc.
973-773-7276
Menachem@BazianCentral.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform