Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem updating a view
Message
 
 
To
29/12/1998 17:00:37
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00171363
Message ID:
00171376
Views:
32
>>>Two things offhand strike me.
>>>Your tablupdate does not look right. The first parameter is to tell if you want to update allrows .T. or one row .F.
>>>
>>
>>The syntax changed between VFP3 and VFP5, the first parameter of .T. or .F. is still accepted, but what can be passed changed to a numeric value as well.
>
>Ah. What would a 0 represent?

From VFP6 Help:
Syntax

TABLEUPDATE([nRows [, lForce]] [, cTableAlias | nWorkArea]
[, cErrorArray])

Returns

Logical

Arguments

nRows

Specifies which changes made to the table or cursor are committed. If nRows is 0 (or .F.) and row or table buffering is enabled, only changes made to the current record in the table or cursor are committed.

If nRows is 1 and table buffering is enabled, changes made to all records are committed to the table or cursor. If nRows is 1 (or .T.) and row buffering is enabled, only changes made to the current record in the table or cursor are committed.

If nRows is 2, changes made to the table or cursor are committed in the same manner as when nRows is 1. However, an error doesn't occur when a change cannot be committed, and Visual FoxPro continues to process any remaining records in the table or cursor. If cErrorArray is included, an array containing error information is created when an error occurs.

The default value for nRows is 0.
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform