473,662 Members | 2,666 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.Ap pendText(Person List.getpersonb yusername(usern ametextbox.Text )
..{what.ToStrin g}.ToString)

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

Thanks,
Derek
Nov 20 '05 #1
6 1150
"Derek Martin" <dm*****@DONTSP AMMEokstate.edu > schrieb
Dim what As String = InputBox("What property do you want to get?",
"Requested Property")
RichTextBox1.Ap pendText(Person List.getpersonb yusername(usern ametextbox.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*****@DONTSP AMMEokstate.edu > schrieb
Dim what As String = InputBox("What property do you want to get?",
"Requested Property")
RichTextBox1.Ap pendText(Person List.getpersonb yusername(usern ametextbox.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*****@DONTSP AMMEokstate.edu > wrote in message
news:eo******** *****@TK2MSFTNG P10.phx.gbl...
Dim what As String = InputBox("What property do you want to get?",
"Requested Property")
RichTextBox1.Ap pendText(Person List.getpersonb yusername(usern ametextbox.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*****@DONTSP AMMEokstate.edu > wrote in message
news:eo******** *****@TK2MSFTNG P10.phx.gbl...
Dim what As String = InputBox("What property do you want to get?",
"Requested Property")
RichTextBox1.Ap pendText(Person List.getpersonb yusername(usern ametextbox.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
20309
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()', this.pinginterval); - but is there no way to do this without using the literal ObjectName? If I write 'this.methodName()' I get "Line 1 Char 1: Object doesn't support this property or method." in IE, and nothing happens in Firebird.
15
3219
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 tell me why these DIVs don't drift to the left as they are supposed to? <script language="javascript">
3
2078
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 for the FIND button (using just cboCuisine for testing) is: Private Sub Command13_Click()
2
3048
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 what I'm hoping to achieve. I've never before had to use Javascript closures, but now I do, so I'm making an effort to understand them. I've been giving this essay a re-read: http://jibbering.com/faq/faq_notes/closures.html
68
4602
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 temporary but it was stated that it would not. This has come up in an irc channel but I can not find the original thread, nor can I get any code to work. Foo& Bar( int Val ) { return Foo( Val ); }
0
8435
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8345
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8857
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8547
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7368
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5655
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4181
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4348
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1754
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.