473,387 Members | 1,535 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.

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 1139
"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
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
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
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
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
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
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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.