473,466 Members | 1,394 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Cannot explicitly call operator or accessor

Gav
What is this error message all about?

I cannot find anything about it on the net... it is giving me this error
from code i have found on the net that should work but for me i get a load
of these errors. If anyone could help it would be great?

Thanks
Gav
Nov 17 '05 #1
3 7953
Could you post the code, or a link to where you got the code, and
indicate the exact text of the error message and indicate which line(s)
of code are causing it?

Nov 17 '05 #2
Gav
Thanks for replying but I have had an answer from a different newsgroup.

I was trying to set the IsNullable value to true for a parameter.

I was trying to use:

parameter1.set_IsNullable(true);

when I should have been using:

parameter1.IsNullable = true;

//This one doesn't come up in VS as an option.

Thanks again
Gav

"Bruce Wood" <br*******@canada.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
Could you post the code, or a link to where you got the code, and
indicate the exact text of the error message and indicate which line(s)
of code are causing it?

Nov 17 '05 #3
you are not allowed to call accessors like set_Color(newColor); but instead
you have to write Color = newColor; because it is a property.
"Gav" <sp**@spam.com> schrieb im Newsbeitrag
news:ug*************@TK2MSFTNGP15.phx.gbl...
What is this error message all about?

I cannot find anything about it on the net... it is giving me this error
from code i have found on the net that should work but for me i get a load
of these errors. If anyone could help it would be great?

Thanks
Gav

Nov 17 '05 #4

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

Similar topics

3
by: Prakash Bande | last post by:
Hi, I have bool operator == (xx* obj, const string st). I have declared it as friend of class xx. I am now able to do this: xx ox; string st; if (&ox == st) { } But, when I have a vector<xx*>...
5
by: Teddy | last post by:
Hello all consider the class Date declaretion below: class Date { public: Date(); Date(int year, int month, int day); Date(const string&); int getYear() const;
22
by: Christoph Boget | last post by:
I am getting an error (a few among many) for the following lines of code: retval.BrokerName = (( curRow == System.DBNull.Value ) ? SqlString.Null : (string)curRow ); retval.BrokerGroupId = ((...
1
by: RajS | last post by:
Hi All, I wanted increase time out on odbc connection, I have code like this this.odbcConnection1.set_ConnectionTimeout(1000); I got the following error "cannot explicitly call operator or...
12
by: karen | last post by:
Hi all : this is going to be a long post. So i apologize in advance :) i am converting a java program in VB right now. I am a java programmer by trade. so i am no expert in this department. I...
13
by: shsingh | last post by:
I have a class A containing some map as data variables. I creat an object of class A on heap by allocatiing memory by using "malloc". This will return me the required memory but the object is not...
6
by: Don Lancaster | last post by:
I need to progrmatically do this inside a loop this.fh03.value = fixFloat (Harms, numPoints) ; with the numbers changing per an index. If I try curHvals = "03" ; // (derived from...
1
by: Kenji Noguchi | last post by:
Hi I'm using Python 2.4.4 on 32bit x86 Linux. I have a problem with printing hex string for a value larger than 0x800000000 when the value is given to % operator via an instance of a class with...
15
by: Tao Wang | last post by:
Hi, I have a class Data as following class Data{ .... }; I know if I want to cast it to int implicitly I should write like following:
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:
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.