On 05/26/2018 10:41 PM, Xin Cheng wrote:
Hi,
Why does anyone want to know the name of the sub inside the sub itself?
Is it more interesting to know the name of the calling sub?
Thanks!
Xin
Hi Xin,
This program check about 50 web sites to find new revisions
of software I need to support my customers. Each web site
has it own sub.
I copy and paste the main subs a lot. I don't always get
their names changed over, so this way I can copy and paste
and not worry about the name of the sub. I have a bad
enough time getting the target directories and web sites
changed over.
Once I have the sub's name, I pass it to all the helper subs
to rat out the offender if an error is detected.
Also, the error reporting in the main sub says who it is and
that way I don't have to worry about editing the name
over and over when I copy and paste.
Plus I am known to change the names of the helper subs
too. This way I don't have to fret about changing the name
over in the error reporting.
So it just makes for one less thing to goof and have
to troubleshoot.
-T