From: Mitra <mi...@ea...> - 2003-02-25 23:05:35
|
Don't we need to define ONE of these ways, and then convert the existing functions to use it, I think the confusion is because the rules aren't defined so each coder has done it differently. =46or example insert_fnc_fil sets $err, but that is ignored. I would suggest that we need both errors and warnings, i.e. that a warning is set when an item *IS*created/edited, and errors are set when an item *IS NOT* created/edited. - Mitra At 2:03 PM +0100 25/2/03, Honza Malik wrote: >Hi Mitra, > > you are right, currently generated messages from insert_fnc_xxx >functions are ignored - we do not use the return code. So, it is up to >you, how to display the errors to user (direct displaying in >StoreItem(), filling global $err[] array, creating new Error object, >...). I do not prefer option 1. > >Regards, > Honza > >On P=E1, 2003-02-21 at 22:51, Mitra wrote: >> Honza >> >> How are errors SUPPOSED to be returned from insert_fnc_xxxx functions, >> >> I see various places where things are done like return "xxxx" >> >> But ...the calling functions seem to ignore these errors, >> >> Specifically I'm trying to get errors generated inside insert_fnc_fil >> when trying and failing to do a Resize to propogate all the way back >> to the calling Item Manager screen, and I can't figure out how you >> wanted this to work. >> >> - Mitra >> >> -- >> Mitra Technology Consulting - www.mitra.biz - mi...@mi... >> 02-6684-8096 or 0414-648-0722 >> >> Life is a Mystery to be Lived, not a Problem to be Solved >> >> >> >> ------------------------------------------------------- >> This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. >> The most comprehensive and flexible code editor you can use. >> Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. >> www.slickedit.com/sourceforge >> _______________________________________________ >> Apc-aa-coders mailing list >> Apc...@li... >> https://lists.sourceforge.net/lists/listinfo/apc-aa-coders >> > > > > >------------------------------------------------------- >This sf.net email is sponsored by:ThinkGeek >Welcome to geek heaven. >http://thinkgeek.com/sf >_______________________________________________ >Apc-aa-coders mailing list >Apc...@li... >https://lists.sourceforge.net/lists/listinfo/apc-aa-coders -- Mitra Technology Consulting - www.mitra.biz - mi...@mi... 02-6684-8096 or 0414-648-0722 Life is a Mystery to be Lived, not a Problem to be Solved |