473,507 Members | 2,375 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using a variable in an expression

Dim what As String = InputBox("What property do you want to get?",
"Requested Property")
RichTextBox1.AppendText(PersonList.getpersonbyuser name(usernametextbox.Text)
..{what.ToString}.ToString)

How can I do this???? (or is it not possible)

Thanks,
Derek
Nov 20 '05 #1
6 1141
"Derek Martin" <dm*****@DONTSPAMMEokstate.edu> schrieb
Dim what As String = InputBox("What property do you want to get?",
"Requested Property")
RichTextBox1.AppendText(PersonList.getpersonbyuser name(usernametextbox.Text) .{what.ToString}.ToString)

How can I do this???? (or is it not possible)


A user shouldn't deal with property names, but if you need it:

http://msdn.microsoft.com/library/en...usingtypes.asp
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #2
"Derek Martin" <dm*****@DONTSPAMMEokstate.edu> schrieb
Dim what As String = InputBox("What property do you want to get?",
"Requested Property")
RichTextBox1.AppendText(PersonList.getpersonbyuser name(usernametextbox.Text) .{what.ToString}.ToString)

How can I do this???? (or is it not possible)


A user shouldn't deal with property names, but if you need it:

http://msdn.microsoft.com/library/en...usingtypes.asp
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #3
use CallByName
Nov 20 '05 #4
use CallByName
Nov 20 '05 #5
I agree absolutely, this is more for testing purposes so that I can write
some code to pass into a generalized function that returns 'object
attribute' based on what is passed in.
:-)
Many thanks to you both!

"Derek Martin" <dm*****@DONTSPAMMEokstate.edu> wrote in message
news:eo*************@TK2MSFTNGP10.phx.gbl...
Dim what As String = InputBox("What property do you want to get?",
"Requested Property")
RichTextBox1.AppendText(PersonList.getpersonbyuser name(usernametextbox.Text) .{what.ToString}.ToString)

How can I do this???? (or is it not possible)

Thanks,
Derek

Nov 20 '05 #6
I agree absolutely, this is more for testing purposes so that I can write
some code to pass into a generalized function that returns 'object
attribute' based on what is passed in.
:-)
Many thanks to you both!

"Derek Martin" <dm*****@DONTSPAMMEokstate.edu> wrote in message
news:eo*************@TK2MSFTNGP10.phx.gbl...
Dim what As String = InputBox("What property do you want to get?",
"Requested Property")
RichTextBox1.AppendText(PersonList.getpersonbyuser name(usernametextbox.Text) .{what.ToString}.ToString)

How can I do this???? (or is it not possible)

Thanks,
Derek

Nov 20 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

28
20272
by: Daniel | last post by:
Hello =) I have an object which contains a method that should execute every x ms. I can use setInterval inside the object construct like this - self.setInterval('ObjectName.methodName()',...
15
3192
by: lawrence | last post by:
Sorry for the dumb question but I'm new to Javascript. I wrote this script hoping to animate some div blocks on a page. You can see the page here: http://www.keymedia.biz/demo.htm Can anyone...
3
2068
by: amywolfie | last post by:
Hi All: I would like to run a report based on criteria from 3 unbound combo boxes located on a parameter form (combo boxes are: cboCuisine, cboLocation, and cboRestaurant) The present code...
2
3034
by: Jake Barnes | last post by:
Using javascript closures to create singletons to ensure the survival of a reference to an HTML block when removeChild() may remove the last reference to the block and thus destory the block is...
68
4551
by: Jim Langston | last post by:
I remember there was a thread a while back that was talking about using the return value of a function as a reference where I had thought the reference would become invalidated because it was a...
0
7111
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
7319
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
7376
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...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3191
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1542
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
760
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
412
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.