Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I am new to VB and going to school. Need Help. 1

Status
Not open for further replies.
Jan 10, 2001
2,873
US
The instructor is not clear and the book we use is worse. I need some help with variable names and what they can and cant contain. Can variable names contain an underscore _ ? The book does not say it does not and the indtructor did not say. Any help would be great. James Collins
Field Service Engineer
A+, MCP

email: butchrecon@skyenet.net

Please let us (Tek-tips members) know if the solutions we provide are helpful to you. Not only do they help you but they may help others.
 
I had that book in school. It was a good one.

To answer your question, underscores are safe.
 
Thanks kavius. James Collins
Field Service Engineer
A+, MCP

email: butchrecon@skyenet.net

Please let us (Tek-tips members) know if the solutions we provide are helpful to you. Not only do they help you but they may help others.
 
Another great book is Visual Basic 6 from the Ground Up by
Gary Cornel.

Variables can contain any combination (up to 255 characters)
of letters, numbers, or underscores.

However, the first character has to be a letter. An underscore or a number can't be the first character.

Happy Programming.

Jessica Osborne
Programmer/Analyst-Contract Systems
Individual Life Department
Co-operators Life Insurance Co.
(306) 347-6940
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top