Re: Can a routine tell if it is being called from the Immediate window?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Randy Birch (rgb_removethis_at_mvps.org)
Date: 10/02/04


Date: Sat, 2 Oct 2004 12:48:19 -0400

Not possible.

-- 
Randy Birch
MS MVP Visual Basic
http://vbnet.mvps.org/
"Top Spin" <ToppSpin@hotmail.com> wrote in message
news:3k8tl0hg5isnqsgj34t0mhg3iq2icurfnn@4ax.com...
: I have written a bunch of debug and test routines. Some of them test a
: global debug switch and either display information in the Immediate
: window or do nothing depending on the switch setting.
:
: I woulod like to be able to call them from the Immediate window and
: have them execute regardless of the ssetting of the debug switches.
:
: If I could tell that it was being called from the Immediate window as
: opposed to from another routine, I could make that happen.
:
: Thanks
:
: -- 
: Running MS VB 6.0 Pro (SP5) on Win2K-SR2
: For email, use Usenet-20031220 at spamex.com


Relevant Pages

  • RE: Not sure what to do with this error
    ... I tried what you send me below, and when I put the Debug code into the ... Immediate window, it gives me the original Runtime error 2683. ... Jerry Whittle, Microsoft Access MVP ... Private Sub Form_Current ...
    (microsoft.public.access.gettingstarted)
  • Re: Search for a record based on one of two fields
    ... So did you trace where the code went, ... YOu really need to debug this for yourself, but your string is not the same ... > immediate window nothing other than a line-return regardless of which part ... >> variables, see what is wrong, and even trace where the error handler is ...
    (microsoft.public.access.formscoding)
  • Re: Debugging large programs
    ... How do you guys debug large programs? ... > dominate the binary string. ... direct may be awfully slow but "nothing is slower than a bug". ... comparison on a another debug switch. ...
    (comp.lang.fortran)
  • Re: Viewing variables in Debug
    ... One can find a useful discussion of the use of Debug ... and the Immediate Window in VBA at: ... current code display while in Debug, i.e., ... object browser where I can examine variables ...
    (microsoft.public.access.formscoding)
  • Re: Select the most recent date?
    ... To debug this, ... Then test it by typing this expression into the Immediate Window: ... > When I try to run the report, ...
    (microsoft.public.access.reports)