Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Update works on local drive, not on a Novell network dri
Message
De
15/07/2005 12:41:49
 
 
À
14/07/2005 14:05:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 7 SP1
Network:
Novell 6.x
Database:
Visual FoxPro
Divers
Thread ID:
01031749
Message ID:
01033083
Vues:
21
>Yes I believe you can use 'replace' along with seeks
>
>=seek(something,'thetable','theindex')
>replace something with somethingelse
>
>I believe will avoid the locks issue - if thats what you have!
>
>John

Basic structure is (obviously not the exact or the entire code)
SELECT x
BEGIN TRANSACTION
SCAN
    REPLACE a WITH b
    FOR m.i = 1 to 2
        calculate memory variables
        GOTO BOTTOM IN y
        INSERT INTO y FROM MEMVARS
        GOTO BOTTOM IN z
        INSERT INTO z FROM MEMVARS
    ENDFOR
ENDSCAN

=TABLEUPDATE(.T.,.F.,x)
=TABLEUPDATE(.T.,.F.,y)
=TABLEUPDATE(.T.,.F.,z)
END TRANSACTION
not clear where and what =seek(...) I would use here. Do I figure out what the key field is and re-seek it?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform