lwlodar wrote: > To do this kind of checking right, in good style, there is no other > option, than just write C function (as Jim said). > Still, you can do this in bad style - simply use EXECUTE and call > jshow, as long as you are doing only jBASIC development, > this should be enough (going further and using C/C++ this would be not > enrough), > > But I assume - you are talking about jBASIC only > > At the end - again, Jim is right - this is not the way - fix your > application - so there are no calls to non-existing routines, > > Actually I suppose that if you are willing to use BASIC and CATALOG (or the T24 equivalents) then you should find an entry in the MD or VOC file that is named after the subroutine. You could therefore read the VOC file, determine that the entry looks correct and if it does then call the subroutine, otherwise do not. However, this does not guarantee correctness here and the issue s still that your design is not correct - you should have some other way to determine what subroutines are present and should be called according to some configuration. One of the reasons is that if the subroutines are not there and should be, you will silently ignore the issue. Stand back and look at your design and what you are really trying to achieve.
Jim --~--~---------~--~----~------------~-------~--~----~ Please read the posting guidelines at: http://groups.google.com/group/jBASE/web/Posting%20Guidelines IMPORTANT: Type T24: at the start of the subject line for questions specific to Globus/T24 To post, send email to [email protected] To unsubscribe, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jBASE?hl=en -~----------~----~----~----~------~----~------~--~---
