Computer Learning Zone CLZ Access Excel Word Windows

The noblest pleasure is the joy of understanding.

-Leonardo da Vinci
 
Home   Courses   TechHelp   Help   Contact   Merch   Join   Order   Logon   Forums   
 
Back to Visual Basic Forum    Comments List
Upload Images | @Reply | Bookmark | Link | Email | Next Unseen |
Convert from a string
Kevin Robertson 
          
9 years ago
Alex

How do I convert "+" to + to use in a calculation. I'm using VB 2015.

Thanks!


Reply from Alex Hedley:

I'm sure I did something like this in Uni years ago using java with Stacks, pushing and popping values and then performing the calculations.

Are you writing a Calculator app?
Can you not have a + button and perform the operation that way?

You could have a Switch or If statement and compare the string "+" and if so do the operation.

Maybe the Eval() function?
VBScript Eval() (from the awesome ss64)
Eval("1 + 1") returns 2.

People have tried to write there own for .NET with Reflection etc, have a search there are a number.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Visual Basic Forum.
 

Next Unseen

 
 
What's This?

 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 9/30/2026 3:09:36 AM. PLT: 1s