[V4REV] Error return value discussed.
Robert Brenstein
rjb at robelko.com
Sun Jun 12 01:17:33 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
I think the current method of returning error is fine (your #2). At
least it is consistent with the way other call return errors. Or are
you planning to handle errors differently in V2?
Robert
More information about the Valentina
mailing list