Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TableUpdate() Moves Record Pointer
Message
De
11/01/2001 22:36:45
 
 
À
11/01/2001 20:00:20
John Tomblin
Service Station Systems, Inc.
San Jose, Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00462698
Message ID:
00462761
Vues:
15
>In one instance, issueing a TableUpdate moves the record pointer. Does anyone have a clue why this world happen or what can be done to prevent this behiver? What I am doing now is:
>
>CurrRec = recno()
>=tableupdate(1, .T., "TableName")
>goto CurrRec
>
>This works but, this application has around 500 tableupdate calls. It's a big job to do Microsoft's work for them.

That's a bad habit to get into - if you append a record, it's going to have a negative record number before the TABLEUPDATE(), and a positive one afterwards; use a primary key and a seek instead to avoid errors.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform