![]() |
Characters display problem
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
:
Const upnot :
Const 7-upIf 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.ShowWhich adds the item to a different form. If anyone could help that would be great. Thanks. |
Im not sure in numbers can or cannot be used, but im certain it cant start with a number.
Consider using seven-up, Seven-Up, etc. |
You can't have a - in the name either. That's an expression. 7-up means "Seven, subtract up" which is nonsensical. Try sevenUp.
|
mackenga, I chose to do that in the end 'cause I didn't know if thier was another way around it. I wanted it to be 7-up because thats the trade name and thats what was required of me. I tried my best anyway but its okay using the way you suggested.
|
| All times are GMT -5. The time now is 8:00 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC