Scalabium Software

SMExport advertising
Knowledge for your independence'.
Home Delphi and C++Builder tips


#8: I need read the unit name and line number with error

If you included the debug information in your project then:

string currentFile = new System.Diagnostics.StackTrace(true).GetFrame(0).GetFileName(); 
int currentLine = new System.Diagnostics.StackTrace(true).GetFrame(0).GetFileLineNumber();


Published: July 9, 2010

See also
 
ABA Picture Convert
dBase Viewer
ABA Document Convert
Clarion to Text converter
SMReport
DBLoad
DBISAM Viewer
Excel Web-stream
Word Web-stream
ABA Database Convert
 
 


Contact to webmaster

 

Borland Software Code Gear Scalabium Delphi tips

Copyright© 1998-2025, Scalabium Software. All rights reserved.
webmaster@scalabium.com

SMExport advertising