Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Update works on local drive, not on a Novell network dri
Message
From
15/07/2005 12:50:25
 
 
To
15/07/2005 12:41:49
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 7 SP1
Network:
Novell 6.x
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01031749
Message ID:
01033088
Views:
22
>>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?
Hi Claude,

This probably doesn't relate to your TABLEUPDATE problem, but your GOTO BOTTOM statements aren't needed because INSERT INTO will automatically insert at the end of file. Oh, and I assume your aliases in your TABLEUPDATE are enclosed in quotes?

Regards,
Jim
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform