Forum Discussion
Manfred_F
10 years agoRegular Contributor
Hi guys,
a System function for the Routine Name would be nice. We'd also Need a System function for the module Name, of course.
I'd also add my vote.
So far, You could use code templates for vbs modules and routines, which contain predefined constants for the element names, e.g. for a module:
Option Explicit
' ModulKommentar
Const mcModul = "Modulname."
or for a Routine
a System function for the Routine Name would be nice. We'd also Need a System function for the module Name, of course.
I'd also add my vote.
So far, You could use code templates for vbs modules and routines, which contain predefined constants for the element names, e.g. for a module:
Option Explicit
' ModulKommentar
Const mcModul = "Modulname."
or for a Routine
Function |( _
Par1, _
Par2 _
)
' KommentarFunktion
Const cRoutine = "NameFunktion"
Dim Ergebnis
NameFunktion = Ergebnis
End Function
As a result, I can use the names in the log, e.g.
Log.Checkpoint "Tabelle Abbruch abgebrochen", mcModul & cRoutine
Regards,
Manfred
Related Content
- 2 years ago
- 11 months ago
- 12 months ago
Recent Discussions
- 11 hours ago
- 2 days ago