crash on empty cursor

Ruslan Zasukhin sunshine at public.kherson.ua
Mon Jan 10 21:05:21 CST 2005


On 1/10/05 8:57 PM, "Olivier" <vidal_olivier at yahoo.fr> wrote:

> Hi list,
> 
> I have a cursor :
> SELECT recId, string1, string2 FROM Table1 ORDER by string1
> 
> If this cursor is empty, then, later, the "cursor.addrecord()" method
> crashes the app.
> 
> Naturally, it is better to use " where RecId=0 " but sometimes we have
> not the choice.

Hmm,

The correct way NOW produce empty cursor for adding of records is

SELECT recId, string1, string2
FROM Table1 
WHERE false
ORDER by string1


-- 
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