Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Messageboxes
Message
From
29/09/1998 17:20:02
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, United States
 
 
To
29/09/1998 17:06:27
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00142123
Message ID:
00142143
Views:
27
Thanks for the help, there was something wrong with the variable at the end of that line. It's value was false, but it's fixed.

Thanks again,

Jim


>Hiya Jim ---
>
>This works:
>
>cMsg1="Hi there I'm a centered"
>cMsg2="Two line message!"
>nMsg1Len=LEN(cMsg1)
>nMsg2Len=LEN(cMsg2)
>nRefLen=MAX(nMsg1Len,nMsg2Len)
>cMsg1=PADL(cMsg1,nMsg1Len+((nRefLen-nMsg1Len)*.5),CHR(32))
>cMsg2=PADL(cMsg2,nMsg2Len+((nRefLen-nMsg2Len)*.5),CHR(32))
>=MESSAGEBOX(cMsg1+CHR(13)+cMsg2,20,"Title")
>
>
>
>>Does anyone know how to have two lines displayed on a message box?
>>
>>Example: line 1 *******************
>> line 2 *******************
>>
>>This is the current code that I have:
>>MESSAGEBOX("You have to enter a quote number"+chr(13)+"Do you want to continue?",20,gcAppName)
>>
>>Thanks
>>
>>Jim
Thanks

Jim
Previous
Reply
Map
View

Click here to load this message in the networking platform