CurrentProjectName
Returns the name of the current project as a literal String.
Syntax: CurrentProjectName [ () ]
The value is the name of the project (executable or library) that owns the call site.
INFO
CurrentProjectName is a compile-time intrinsic --- the literal string is embedded in the compiled code from the project's metadata at the point of the call.
Example
vb
Dim ProjectName As String
ProjectName = CurrentProjectName()
Debug.Print "Running in project: " & ProjectNameSee Also
- CurrentComponentName function
- CurrentProcedureName function
- CurrentSourceFile function