>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") > >>