[V4REV] Error return value discussed.

Ivan Smahin IvanSmahin at public.kherson.ua
Thu Jun 9 18:52:13 CDT 2005


Hello All,

    We have some set of methods which return handle of kernel object.
    For example: VDatabase_SqlSelect method return handle of cursor.

    What should we return to script if exception in kernel occur?

    1. "0" - it means bad handle. You can get kernel error number and string
    later - if needed.

    So script seems like:

    put VDatabase_SqlSelect( dbRef, "select * from t1" ) into cursorRef
    if cursorRef = 0 then
       -- Error
    end if
    

    2. "ERROR <errCode>" as handle value.

-- 
Best regards,
 Ivan                          mailto:IvanSmahin at public.kherson.ua

[Everything is possible. The impossible just takes longer.]



More information about the Valentina mailing list