Harry,
If you want to force line breaks insert CHR(13) into the string and MessageBox() will break the line there. What version of VFP are you using because VPF6 SP3 is keeping all spaces I put in the string.
>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).