473,401 Members | 2,125 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,401 software developers and data experts.

Assigning varibles by referance

I want to pass the referance to a variable around, how do I do that?

(unit is a complex object I made, and wondering about more complex data types)
dim unit1 as new unit
dim unit2 as new unit
dim unit3 as new unit

unit1=1
unit2=2
unit3= byref unit2
unit3 += unit1

'now unit2 should =3

I know this doesn't work...but it should show what I WANT to do....I want to pass the refeance to varibles around since the variable I want to change is well, variable.
This is also a gross oversimplification of what I'm trying to do so I don't have to post hundreds of lines of code...
Oct 11 '09 #1
0 1061

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: nntp | last post by:
I tried mod_perl. It is too troublesome. Many old scripts stopped running. Even those running eat memory like crazy. I wonder why mod_php does not have the problems in mod_perl, such as memory...
1
by: Pums | last post by:
Hi All, I am trying to retrive an image from the database. when i click the button for the first time in which i have written the code of retrival it doesn't go into the code of filling the...
0
by: Joshua Russell | last post by:
Hi, Has anyone get some code that will enable to return a thread referance by searching for athread by name? Thanx Josh
0
by: Christopher | last post by:
I am looking for a referance of messages and what triggers thier getting sent to the winproc such as WM_ACTIVATE. I dug through msdn and the platform sdk and don't see a place where it lists them...
0
by: CES | last post by:
This is probably a stupid question but is their a way of adding a pointer to an assemblies within the code as apposed to adding an assemblie referance in the Machine.Config file? I'm on a...
2
by: I am Sam | last post by:
I keep getting the following exception error: Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current web request....
2
by: Metalzed | last post by:
Hi my problem is real simple. I want to give 2 Varibles values from one SELECT query Here a exampel. DECLARE @test1 int , @test2 int; SET @test1=SELECT a FROM Table_T SET @test2=SELECT b...
4
by: Hakan ÖRNEK | last post by:
Hi, I have two dll's like First.dll and Second.dll compiled by vb.net, a object in first.dll and, b object in Second.dll. I need hold cross referances; a.breferance=b and b.areferance=a I...
3
by: vimalankvk80 | last post by:
what will happen, if we forget to return ostream referance ? class A { Private: int _a; int _b;
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
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
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.