Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Messagebox next line
Message
De
06/09/2007 14:05:59
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01252832
Message ID:
01252834
Vues:
19
Hi Nick,

As you add each line, you need to put a CHR(10) + CHR(13) in the string to get a carriage return, line feed.

HTH
Beth

>I am trying to create a messagebox while going though scan loop. With every iteration of the loop, I would like put the text message (msgstr) on a new line in the messagebox dialog box. how would I accomplish that? Here is my code:
>
>
>scan
>	IF tqpu < whsamt && if the amount given to institution is less that quantity on hand, create a message
>	   crtstr = "You don't have enough "+ALLTRIM(crsprod)+" Product in the inventory. You are trying to deliver " + ;
              STR(whsamt)+" and you only have "+STR(tqpu) + ;
              " inventory in stock. Please click 'None' in the option or reduce the amount you are trying to deliver in the 'WHS Qty' column"
>	   msgstr = msgstr + ALLTRIM(crstr)
>	ENDIF && do we have enough in stock to send
>endscan
>
>	IF !EMPTY(msgstr)
>         MESSAGEBOX(msgstr,0,"Warning, correct the delivery inventory amount")
>	  proceed = .f.
>	ENDIF
>
>for example I would like the messagebox to display:
>
>
>message one
>space
>message two
>space....
>
>
>how would I create that crstr string so each message is on the next line in the messagebox dialog box
>
>thanks
>Nick
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform