Updating all records again
Roger Amar
Roger at logram.com
Thu Feb 24 10:57:40 CST 2005
Hi Ruslan,
May I have a reply about this problem ?
I omitted to precise that the cursor was created with the kReadWrite parameter and that Updating *one* record works normally.
Thanks,
Roger;
-----Message d'origine-----
De : valentina-bounces at lists.macserve.net [mailto:valentina-bounces at lists.macserve.net] De la part de Roger Amar
Envoyé : mercredi 23 février 2005 17:56
À : Valentina Developers
Objet : Updating all records
Hello Robert,
>However, when fields are sorted, the cursor is not, and you can't use
>navigation arrows to move into.
>>But if you use SelectRecords, you have no cursor to be concerned
about. If user selects a line, you just fetch that records >>to display it. Valentina is so fast that there is no real advantage (in most
>>circumstances) to keep the cursor and keep traversing it. It is as
effective to keep refetching the data.
What about my navigation arrows (first,prev,next,last) ?
Just now, I have a new problem : when I attempt to update all the records of a cursor, they are *not* updated.
My handler is made like this :
on UpdateAllRecords fldName, fldValue
CheckdbRef
CheckCursor
put Valentina("Cursor_SetField",cursorRef,fldName,fldValue) into temp --> returns empty
CheckError "UpdateAllRecord", "Cursor_SetField", temp
put Valentina ("Cursor_UpdateAllRecords",cursorRef) into temp --> returns true
CheckError "UpdateAllRecords", "Cursor_UpdateAllRecords", temp
put Valentina ("DataBase_Flush",dbRef) into temp --> returns empty
CheckError "UpdateAllRecords", "DataBase_Flush", temp end UpdateAllRecords
What is wrong ??
Thanks again for your help.
Roger;
_______________________________________________
Valentina mailing list
Valentina at lists.macserve.net
http://lists.macserve.net/mailman/listinfo/valentina
More information about the Valentina
mailing list