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

object type

how to assign a instance of a class to object type
i get error

class thisclass
{
object CallingObject
public thisclass(object o)
{
this.CallingObject=0
}
}
thanks
Apr 13 '07 #1
3 1404
"Mike J" <ve***********@sbcglobal.netwrote in message
news:%L*****************@newssvr21.news.prodigy.ne t...
how to assign a instance of a class to object type
i get error
Well since I don't see a single semicolon in your code, I would think
that you would get several errors.
And,
did you mean to set this.CallingObject=0?

If you post the actual error you are getting, it might help as well
class thisclass
{
object CallingObject
public thisclass(object o)
{
this.CallingObject=0
}
}
thanks

Bill
Apr 13 '07 #2
yes typo
o no 0
sorry

"Bill Butler" <qw****@asdf.comwrote in message
news:TgRTh.26$nU4.7@trnddc03...
"Mike J" <ve***********@sbcglobal.netwrote in message
news:%L*****************@newssvr21.news.prodigy.ne t...
>how to assign a instance of a class to object type
i get error

Well since I don't see a single semicolon in your code, I would think that
you would get several errors.
And,
did you mean to set this.CallingObject=0?

If you post the actual error you are getting, it might help as well
>class thisclass
{
object CallingObject
public thisclass(object o)
{
this.CallingObject=0
}
}
thanks


Bill

Apr 13 '07 #3
Mike J wrote:
how to assign a instance of a class to object type
i get error

class thisclass
{
object CallingObject
public thisclass(object o)
{
this.CallingObject=0
}
}
thanks
As Bill pointed out, that code doesn't even compile.

Please post the actual code that you have problems with, and also the
error message. There is nothing complicated with what you are trying to
do, so the error has to be in how you are trying to do it. I don't feel
like looking for an error that doesn't exist in code that isn't even used.

--
Göran Andersson
_____
http://www.guffa.com
Apr 13 '07 #4

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

Similar topics

4
by: Avi Kak | last post by:
Hello: Please forgive me if my question is too silly or just not well-formed. Wesley Chun in his book (Core Python Programming) says that **everything** in Python is an object. So I became...
44
by: Steven T. Hatton | last post by:
This may seem like such a simple question, I should be embarrassed to ask it. The FAQ says an object is "A region of storage with associated semantics." OK, what exactly is meant by "associated...
16
by: sneill | last post by:
How is it possible to take the value of a variable (in this case, MODE_CREATE, MODE_UPDATE, etc) and use that as an object property name? In the following example I want 'oIcon' object to have...
100
by: E. Robert Tisdale | last post by:
What is an object? Where did this term come from? Does it have any relation to the objects in "object oriented programming"?
5
by: Matthew | last post by:
I have a nice little Sub that saves data in a class "mySettings" to an XML file. I call it like so: Dim mySettings As mySettings = New mySettings mySettings.value1 = "someText" mySettings.value2...
16
by: anonymous.user0 | last post by:
The way I understand it, if I have an object Listener that has registered as a listener for some event Event that's produced by an object Emitter, as long as Emitter is still allocated Listener...
26
by: yb | last post by:
Hi, Is there a standard for the global 'window' object in browsers? For example, it supports methods such as setInterval and clearInterval, and several others. I know that w3c standardized...
3
by: User1014 | last post by:
A global variable is really just a property of the "Global Object", so what does that make a function defined in the global context? A method of the Global Object? ...
2
by: Ralph | last post by:
Hi I don't understand why it's not working: function schedule(imTop){ this.tdImagesTop = imTop; } schedule.prototype.selectEl = function() { alert(this.tdImagesTop);
5
by: JH | last post by:
Hi I found that a type/class are both a subclass and a instance of base type "object". It conflicts to my understanding that: 1.) a type/class object is created from class statement 2.) a...
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...
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
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,...
0
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...
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...

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.