473,396 Members | 1,996 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,396 software developers and data experts.

Set Object Refrence From String?

Hi All,

I would like to know how to set an object from a string provided?

Here is the situation:
I have a listview that holds the names of ListView Objects on different
forms. I want to set an object called frmOBJ As Object to the Listview sub
Item holding the name of the form and listview to access.

LV is the listview holding the names of the ListViews and their Form Names
for instance:
lv.item(1).Text = "List1"
lv.Item(1).subitems(1).text = "Form1.ListView1"
etc....

Dim lvItem as ListViewItem
For Each lvItem in LV.Items
'use this listview for something
frmOBJ = lvItem.SubItems(1).Text
Next

Any help would be appreciated,
John.
Nov 21 '05 #1
1 1357
"John Rugo" <jr***@patmedia.net> wrote in
news:ew**************@tk2msftngp13.phx.gbl:
Here is the situation:
I have a listview that holds the names of ListView Objects on
different forms. I want to set an object called frmOBJ As Object to
the Listview sub Item holding the name of the form and listview to
access.


Add the object itself instead of the string, and .NET will use the ToString method to display it.

Then you have the object reference...
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Develop ASP.NET applications easier and in less time:
http://www.atozed.com/IntraWeb/
Nov 21 '05 #2

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

Similar topics

6
by: Hameed Khan | last post by:
hi, i was reading library refrence manual. there i found object() function. they says in library refrence that "Return a new featureless object. object() is a base for all new style classes. It...
2
by: Charles Russell | last post by:
I am new to JavaScript and I am currently having a problem that I can find no clear solution to. I have a series of button contained in a row. These rows are defined as follows: <tr> <!--This is...
7
by: Nick Zdunic | last post by:
I have a remotable object running in my host application. The host starts up and creates the object. Within a method to start the remote object doing its thing it creates an object. ...
6
by: orahm | last post by:
I have started an earlier thread about this topic. I got some good info but I'm still confused. I'm trying to add a complex number object that contains a real and a imaninary double to a listbox....
5
by: Peter | last post by:
Team VB.net, I have multiple programs that need a tool to count lines in a text files. I have been solving this problem through writing proceedures but I hate cutting and pasting code. Is...
3
by: jeroen | last post by:
hello, i'm having a problem with the following piece of code. i use it to read a string in an array, then search that string for ";;" symbols, then i read what comes after that to a variable,...
161
by: KraftDiner | last post by:
I was under the assumption that everything in python was a refrence... so if I code this: lst = for i in lst: if i==2: i = 4 print lst I though the contents of lst would be modified.....
3
by: red_ghost | last post by:
in my home.aspx page I have a simple login set. when you hit the button it redirects. Here is the code: Protected Sub btnLogin_Click(ByVal sender As Object, ByVal e As System.EventArgs)...
1
by: xnakxx | last post by:
for the sake of making my crazy question eaiser to understand i will try to simplify it as much as possible. Let's say I have a form with one textbox (txtname) and one button (bntGo). How would...
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...
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...

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.