PDA

View Full Version : Simple tip to trace value


externe
10-01-2004, 09:05 AM
Hello,
Just posting a tip

With the help of LFShade here (http://www.cgtalk.com/showpost.php?p=1603821&postcount=9) I create this little function :


fn trace nam val =
(
local ss = stringstream nam
format "% = %" nam val to:ss
print ( ss as string )
)

test = 12
trace "test" test

-- output "test = 12"


I know, this is reaaaaly simple tip. But I like this way to output data

Bye

CGTalk Moderation
01-19-2006, 11:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.