Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Messageboxes
Message
From
29/09/1998 17:06:27
 
 
To
29/09/1998 16:39:37
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00142123
Message ID:
00142133
Views:
35
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
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform