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