Results 1 to 4 of 4

Thread: Error handling

  1. #1
    Guest
    Is there a way that you can get a generic error handler to get hold of the input parameters passed into a function or sub?
    I would like to be able to log all inputs to any function but do not want to hard code saving the parameters as would bloat the code somewhat and make it a pain to maintain.

    Many Thanks,

    John.

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Maybe you could make an addin to add code to save the method arguments, in each function, and also update them if new arguments are implemented to the functions...
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  3. #3
    Guest
    Thanks for the info, thats what it looks like. I was hoping that there was some magic way you could access the parameters direct.
    The only way that I can think of doing this other than an addin was to pass all inputs into functions as parameter arrays, but that would make very nasty code!

    Thanks for the help,

    John.

  4. #4
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Yeah, no magic ways in vb to do that, a param array would be faster to save but "user friendly" ehm.
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width