Results 1 to 28 of 28

Thread: Redirect where Debug.Print goes.

Threaded View

  1. #1

    Thread Starter
    PowerPoster Elroy's Avatar
    Join Date
    Jun 2014
    Location
    Near Nashville TN
    Posts
    10,910

    Redirect where Debug.Print goes.

    It'd be nice if I could figure out how to redirect where Debug.Print goes.

    I've got a little persistent DebugPrint program I often use. It's easy to use, as I just remove the dot from my Debug.Print statements. However, it'd be even more cool if I could just redirect everything.

    At first, I created an auto-instantiating class named "Debug". That worked just fine.

    However, there are still two problems:

    1) This class still doesn't override the internal Debug object.

    2) "Print" is a reserved word and can't be used as a procedure name.

    So drat. Any ideas?
    Last edited by Elroy; Oct 31st, 2022 at 02:16 PM.
    Any software I post in these forums written by me is provided "AS IS" without warranty of any kind, expressed or implied, and permission is hereby granted, free of charge and without restriction, to any person obtaining a copy. To all, peace and happiness.

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