UpdateRecords Not Updating
Chuck Pelto
cbpelto at pcisys.net
Wed Feb 16 12:32:36 CST 2005
Hi Ruslan,
That does not seem to solve the problem of UpdateRecord() not updating
the record.
Besides, I was, in my neophytic fashion, updating all the data in all
the fields of the record.
Regards,
Chuck
On Feb 16, 2005, at 9:20 AM, Ruslan Zasukhin wrote:
> On 2/16/05 2:44 PM, "Chuck Pelto" <cbpelto at pcisys.net> wrote:
>
> Hi Chuck,
>
>> Okay....
>>
>> ...next question.
>>
>> Using V4RB.
>>
>> Under what circumstances will the UpdateRecords() call fail to update
>> a
>> record.
>>
>> I'm doing the following...
>>
>> rslt = myDatabase.mTable.GoToRecID(recID)
>>
>> if rslt then
>>
>> myDatabase.mTable.SetBlank()
>> myDatabase.mTable.field1.SetString(theString)
>> myDatabase.mTable.field2.Value = theValue
>>
>> myDatabase.mTable.UpdateRecord()
>>
>> myDatabase.mTable.Flush()
>>
>> end if
>
> If you going update few fields of table, you should not do SetBlank().
> Because you erase values of all rest fields.
>
> SetBlank() must be called when you going do AddRecord()
>
> --
> Best regards,
> Ruslan Zasukhin [ I feel the need...the need for speed ]
> -------------------------------------------------------------
> e-mail: ruslan at paradigmasoft.com
> web: http://www.paradigmasoft.com
>
> To subscribe to the Valentina mail list go to:
> http://lists.macserve.net/mailman/listinfo/valentina
> -------------------------------------------------------------
>
>
> _______________________________________________
> Valentina mailing list
> Valentina at lists.macserve.net
> http://lists.macserve.net/mailman/listinfo/valentina
>
More information about the Valentina
mailing list