Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Messagebox next line
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Messagebox next line
Miscellaneous
Thread ID:
01252832
Message ID:
01252832
Views:
65
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
Next
Reply
Map
View

Click here to load this message in the networking platform