Results 1 to 4 of 4

Thread: current function or procedure ...

  1. #1

    Thread Starter
    Hyperactive Member spoiledkid's Avatar
    Join Date
    Oct 2002
    Location
    Canada
    Posts
    437

    current function or procedure ...

    Is there a way in VB to identify the name of the Procedure/Function which is being executed in the application ??

    For instance ... If there is a function called TestFunc and when TestFunc is called I'd like to know the name of this function (Testfunc) inside this function (when control comes to this function). I do not want to hardcode this thing. Is there a system value that can provide me this information.

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687
    Well,.... guess what? There isn't. The only way to know where you are is to have some kind of hardcoding....

    TG
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246
    He's right, the only way to do that is in VB.NET.

    Phreak

    Visual Studio 6, Visual Studio.NET 2005, MASM

  4. #4
    Only Slightly Obsessive jemidiah's Avatar
    Join Date
    Apr 2002
    Posts
    2,431
    Though MZTools' error handler adder does "support" that. It will hardcode error handlers through automation. That's probably about the closest you'll ever get.
    The time you enjoy wasting is not wasted time.
    Bertrand Russell

    <- Remember to rate posts you find helpful.

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