Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MessageBox layout
Message
 
 
To
01/07/1999 06:15:40
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00236346
Message ID:
00236730
Views:
13
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).
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform