473,387 Members | 1,890 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

convert string "textbox1" to textbox1

Hi guys

Any help would greatly be appreciated

I've got a small application that needs to convert a string "textbox1.text" to textbox1.text

So

dim number1 as string = "textbox1.text"
dim number2 as string = "textbox2.text"
dim answer as doulbe = cdbl(number1 * number2)

Offcourse this doesnt work cause you cant multiply string with string, but my form does have textbox1 and textbox2. So I need to convert it.

Too bad you cant just go
Dim sometest As Object = "textbox1.text" = textbox1

Regards
Mar 27 '10 #1
0 927

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Tomomichi Amano | last post by:
Hello! I am making a program where it reads out a TXT file like this... string line=sr.ReadLine(); textBox1.Text+=line += "\r\n"; The problem with this code is that, each time it loads a...
10
by: Clint | last post by:
Hey all - I'm having a really confusing problem concerning a web service. Right now, I have an application that needs to call a web service that does nothing but return "true" (this will...
3
by: I am Sam | last post by:
Please help. I'm dying here and pulling out the last few remaining elements of my hair over this. I have built a form that will identify and authenticate users. I keep getting the following...
5
by: RGood | last post by:
Hi, I have a TextBox that contains the following text. User1;User2;User3; ... and so on. Each string is seperated by ";". What is the best way to retreive the strings and place into a string...
1
by: Keith | last post by:
ADVERTISEMEN Is there any way to display quotes Themselves - within a text strin textbox1.text = "This is a "test" of inserting quotes" I want to actually use quotes within this string...
6
by: Paul | last post by:
Hi just wondering if there is an easy way to remove spaces in a string, tried the trim method but think it is only for leading or trailing spaces. thanks -- Paul G Software engineer.
2
by: TCB | last post by:
How can I separate multiple email addresses entered in a single textbox so I can send email in ASP.NET 2.0, the email addresses are separated by (,) or (;) Thanks
1
by: samarthkumar84 | last post by:
Hi I had used following code for sending e-mail but facing this problem. I want to send this e-mail in ASP.NET using VB.NET code. I am attaching both code an output. CODE Imports...
3
by: BarryM | last post by:
Hi a simple questin in got is whythe remove thing doesent always work if your starting integer is 0 and ending integer is like 10 its fine string = textbox1.text.remove(0,10) but if...
21
by: Ray Cassick | last post by:
I can't believe why I had not noticed this before and why I never asked it before... When defining a string why is it not required to use the new keyword? Like: Dim a As String = New String ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.