473,385 Members | 1,320 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,385 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 1138
"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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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
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...

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.