UpdateRecords Not Updating
Ruslan Zasukhin
sunshine at public.kherson.ua
Wed Feb 16 18:20:46 CST 2005
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
-------------------------------------------------------------
More information about the Valentina
mailing list