Im using visual basic 6 and I have a problem. I want to use the drink name 7-up in my program and then output the name into a list box but I can only use
not
If I use const 7-up I get the error message compile error: Expected Identifier. Im not sure why. Visual basic must be able to use numbers and not just text shoulden't it?
The code that I am using for the calculation is
Form5.Show
Form5.List1.AddItem ("up")
Form5.List2.AddItem Format(up, "0.00")
Form5.Text2 = Format((Val(Form5.Text2) + up), "##0.00")
Which adds the item to a different form. If anyone could help that would be great. Thanks.