Hey guys,
I'm trying to create a "log" within my game, basically whenever the user does something it appends a new string to the log. My thought was to have an edit box on the page somewhere where they can view the log, my issue is, I can easily do something like
Old_Log = GetEditboxText(Log_Editbox)
Old_Log = Old_Log + New_String
SetEditboxText(Log_Editbox, Old_Log)
I'm just wondering if it's possible to put a line break in there somewhere, akin to doing chr$(13) or something similar so that when it writes to the edit box, it writes it into a new line.
Maybe I shouldn't be using Editboxes at all and there's a better solution.
The only workaround I can think of is writing it to an actual external log file with "WriteLine" and then loading that log file back into the Editbox, but this seems very cumbersome if it's going to writing to the log a lot.
Thoughts?
Cheers
Rob
Robert Janes (Samu Games)
http://www.samugames.com/artifact