General information
Category:
Coding, syntax & commands
hopefully this is a simple one for someone out there!
How do you pass parameters to the 'messagebox' function in such a way that your code remains readable whilst retaining reasonable appearance in the output message. In particular, how do you prevent the function 'losing' the spaces you put in between words at the end of lines. For example, if I create cMessageText like this:
'Here is a lengthy message which I want my users ';
+' to read before going on to the next choice in the ';
+' program or else they might do something they ';
+' will later regret!'
it appears on screen with the words at each end of the code lines joined - something like this:
'Here is a lengthy message which I want my usersto read before going on to the next choice in theprogram or else they might do something theywill later regret!'
I know you can avoid the problem by writing a ridiculously long line in the code but that makes the code unreadable (even with autowrap on).
The preferred solution?
Harry
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only