Forum Discussion
Manfred_F
11 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
- 4 years ago
Recent Discussions
- 16 hours ago
- 16 hours ago
- 4 days ago