Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why lock() fails.
Message
From
21/10/2001 11:36:23
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
19/10/2001 16:14:07
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00570423
Message ID:
00571443
Views:
26
I must be missing something here.

If you create a temporary cursor, you are the only one that accesses it. No need to LOCK(), or anything similar.

If you want an updatable cursor, where changes go back to the underlying tables, use views. TableUpdate() and TableRevert() work just like with normal tables. Or very similar, at least.

HTH, Hilmar.

>I cannot use TABLEUPDATE() since this is temporary cursor. I use this cursor to collect document rows.
>For saving document, I use COPY TO and TABLEREVERT()
>
>I added LOCK() command because without lock command, the same error occurs in REPLACE command. Using LOCK() I can output a friendly error message. However, error still occurs.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform