devxlogo

Augmenting Error$

Augmenting Error$

In many places, I include Error$ as picked up in an error trap in a descriptive message. I use a function to expand its meaning. I call the function TSS for Time Stamped String to keep it short. It works something like this:

 MsgBox TSS(Error$) & " in Mytest"Public Function TSS (ByVal aString As String)		If Len(aString) Then			TSS = aString & " at " & CStr(Now)		Else			TSS = "Error$ is Blank at " & CStr(Now)		End IfEnd Function
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist