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

Is a 'field' but is used like a 'type'

7
Expand|Select|Wrap|Line Numbers
  1. long A1Ptr;
  2. dictPropId.TryGetValue("A01", out A1Ptr);
  3. PropDefInfo[] A01PropDef = GetPropertyDefinitionInfosByEntityClassId("FILE",A1Ptr.ToSingleArray());
  4. A01Valid = A01PropDef[0].ListValArray;

I am getting 2 errors in this segment of code, whcih is meant to access content from a "pick list".

1. "dictPropId", "A01Vaild" and "A01PropDef" - the error message is: "is a 'field' but is used like a 'type'"

2 "GetPropertyDefinitionInfosByEntityClassId" does not exist in the current context.

How can I eliminate these errors?
Oct 12 '11 #1

✓ answered by Frinavale

Well, what class does it belong to?
Is it a static method that you can call?
You can't call a method that is in some class in a library from another class in another library. You need to reference the method through the appropriate class that contains the method.

6 13118
Frinavale
9,735 Expert Mod 8TB
Do you have a method called GetPropertyDefinitionInfosByEntityClassId defined somewhere?
Oct 12 '11 #2
tmccar
7
Yes, it is part of a library of definitions
Oct 12 '11 #3
Frinavale
9,735 Expert Mod 8TB
Well, what class does it belong to?
Is it a static method that you can call?
You can't call a method that is in some class in a library from another class in another library. You need to reference the method through the appropriate class that contains the method.
Oct 12 '11 #4
tmccar
7
OK thanks, I will see if I can make those corrections, thanks

Tom
Oct 12 '11 #5
Frinavale
9,735 Expert Mod 8TB
I don't know if I was really that clear in what I was saying...it was pretty hard to explain. But it seems you understand me. Let me know if you were able to fix the problem.
Oct 12 '11 #6
tmccar
7
Yes, thanks. It's fixed

tom
Oct 12 '11 #7

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

Similar topics

4
by: Josh | last post by:
Hi, I am trying to write a function in a module in MS Access 2000 that will change the data type of a field called 'Start' in table 'bo_cpm_CS01ALL'. Here is the code that I have done so far...
1
by: Omer kamal | last post by:
When in database(.mdb) the primary key have fields size type "Replication ID" it creates Guid. I tried to create string of Guid and insert it but did it not work. Control.databindings.add(),...
3
by: William Mild | last post by:
I am porting old Dreamweaver generated ASP code to ASP.NET (VBScript to VB.NET). Error: Cast from type 'Field' to type 'Integer' is not valid The error occurs on the line which says "rsStudents =...
1
by: sleepyant | last post by:
Hi, how can I check the field data type of a column in a Dataset table? Like whether it is a DateTime, a Binary or Character. Please help. Thanks.
5
by: Vincent van Beveren | last post by:
Hi everyone, I have a page with a login box. Because of lack of space, instead of labels I put the descriptive text in the input fields (so username input says 'username', and password input...
2
by: comteck | last post by:
From one database, I am trying to create a table in a different database. Here is my code: Dim dbDeja As DAO.Database Dim tblEmployees As DAO.TableDef Dim fldEmployeeNumber As Field ...
0
by: comteck | last post by:
From one database, I am trying to create a table in a different database. Here is my code: Dim dbDeja As DAO.Database Dim tblEmployees As DAO.TableDef Dim fldEmployeeNumber As Field ' Open...
3
by: JDubP | last post by:
I know a bit about VBA in Excel, but not about looping records in Access 2003, so any help will be appreciated. I think if someone can send me some sample code, I can muddle my way through. (or if...
17
by: viki1967 | last post by:
Hi there. I have this form with three fields: <HTML> <HEAD> <script language="javascript"> <!--
1
by: anmol agarwal | last post by:
hey, i have created a table called book_table mysql> describe book_table; +-----------------+--------------+------+-----+---------+----------------+ | Field | Type | Null |...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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: 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...

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.