>I would like to create a custom print function that reports directly to >my gui, and one thing I would like is the line number of where it was >called. Try debug.getinfo(2,"l").currentline . --lhf