![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hello,
i want prevent users from getting error message boxes, that contain cryptic error messages or even such with no error description.Therefore i tried a bit with the B4P error handler.This is working, if it's been triggered i still do not know what the exact error was and therefore cannot take the appropriate measure to continue.All i then can assume is: in this sub an error has occured. Question: is there a chance to get the error description the error popup is presenting to the user..? if not, how do you handle errors in your code and how do you catch them..? In certain other dialects i used to use a structure like this: if function(arguments) ... do something that depends on function ... Else ... do some corrective code here MsgBox("file cannot be opened !") end if Why do B4P functions or routines not give back a return code of true or false..? Or do they..? My own created do and can be handled like outlined, by use of the Return directive. Any other ways or suggestion how to handle that effectively..? kind regards TWELVE |
|
||||
|
Quote:
Recently I made a suggestion to Erel about this and he has agreed to put a facility in the next release of B4PPC which will provide low-level access to the exception details. In anticipation I have the library and help file/tutorial ready. ![]() |
|
|||
|
Hello TWELVE,
Quote:
with the keyword "Return" Sub Mean (a,b) Return (a+b)/2 End Sub Greatings mamuen |
|
|||
|
Quote:
![]() Murat
__________________
PC: Laptop CoreDUo, Windows XP SP2 French PPC: TyTN, WM5 French -> iPAQ 214 WM6 French (to diverge or not to diverge,...) |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Serial port handling | mjcoon | Questions & Help Needed | 5 | 06-26-2008 10:48 AM |
| "more replies below current level" handling | John F. Eldredge | Forum Discussion | 3 | 06-02-2008 06:28 PM |
| Exceptions handling library | agraham | Additional Libraries | 5 | 05-28-2008 11:52 AM |
| Menu handling with hardware keys | miklquick | Questions & Help Needed | 8 | 07-13-2007 06:58 PM |
| Exception Handling | Astragali | Questions & Help Needed | 2 | 05-23-2007 12:44 AM |