Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Messagebox next line
Message
De
06/09/2007 14:28:04
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01252832
Message ID:
01252848
Vues:
16
When I tried your sample the error was "variable crstr not found" because of what I assume is a typo (you set up crtstr but reference crstr). There is also a missing + sign. Otherwise, it works for me


>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform