myCursor.add doesn't work
Ruslan Zasukhin
sunshine at public.kherson.ua
Wed Jun 16 20:28:54 CDT 2004
On 6/16/04 6:40 PM, "jda" <jda at his.com> wrote:
>> Yes, now it returns integer.
>>
>> For VTable -- this is RecID of added record.
>>
>> For Vcursor -- this is position in cursor of added record
>>
>
> If the add fails, is the value set to 0, -1, or what? I used to check
> for result = true/false.
Jon,
Please note.
In Valentina 2.0 all functions of Valentina will throw Vexception in case of
problems.
This means TOTAL changes in the code.
So as I have told, I am going add parameter
Valentina.DoNotThrow
So it will return error in db.Error as Valentina 1.x
To not break a lots an existed code.
But new projects (or old with time) should be updated to use exceptions.
--
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-beta
mailing list