Brian, <<< So the question is loudly begged: What's the right way to code "api" funcs like these that will call hb_errRT_DBCMD ??
Should all such calls be followed by a >> return; << ?? is any PRG level return value from hb_ret* ever used, or other code ever executed after hb_errRT_DBCMD ? >>> In general the answer is yes, once and error is encountered C code should not continue, unless it's really the INTENT. In such rare case, if any, it should probably be documented. <<< I am indeed adding more stuff to adsfunc.c so if it needs an overhaul in error handling, now's a good time. >>> Ok. <<< I still would appreciate knowing how to interpret: >> hb_vmRequestQuery() is set - Couldn't create error ADSISEMPTY >> '(null)' >>> Sorry, I don't have a better description. It's a literal and exact description of an internal condition which is erroneous. This condition check was added to avoid more confusing outcome. The error message attempts to explain that an Error Object can not be created because PRG code can not be executed. Ron ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Register now and save $200. Hurry, offer ends at 11:59 p.m., Monday, April 7! Use priority code J8TLD2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ xHarbour-developers mailing list xHarbour-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xharbour-developers