Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Messagebox next line
Message
From
06/09/2007 14:21:52
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01252832
Message ID:
01252843
Views:
21
Nick,

please make your messages readable by setting the number of characters per line.

>Thanks Beth, I'm going to try that, but I have run into another problem. I did a sample messagebox and kept getting errors that my "variable msgstr is not found". Here is the sample:
>
>
>LOCAL msgstr,crsprod,whsamt,tqpu
>msgstr = ''
>crsprod = 'product1'
>whsamt = 2
>tqpu = 1
>
>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"+CHR(10) + CHR(13)
>msgstr = msgstr + ALLTRIM(crstr)
>
>
>crsprod = 'product2'
>whsamt = 5
>tqpu = 4
>
>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"CHR(10) + CHR(13)
>msgstr = msgstr + ALLTRIM(crstr)
>
>
>
>MESSAGEBOX(msgstr,0,"Warning, correct the delivery inventory amount")
>
>
>
>thanks
>Nick
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform