Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Messageboxes
Message
De
29/09/1998 17:06:27
 
 
À
29/09/1998 16:39:37
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00142123
Message ID:
00142133
Vues:
36
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform