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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tmccar
    New Member
    • Sep 2011
    • 7

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

    Code:
    long A1Ptr;
    dictPropId.TryGetValue("A01", out A1Ptr);
    PropDefInfo[] A01PropDef = GetPropertyDefinitionInfosByEntityClassId("FILE",A1Ptr.ToSingleArray());
    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 "GetPropertyDef initionInfosByE ntityClassId" does not exist in the current context.

    How can I eliminate these errors?
    Last edited by Meetee; Oct 12 '11, 08:51 AM. Reason: code tags added
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    Do you have a method called GetPropertyDefi nitionInfosByEn tityClassId defined somewhere?

    Comment

    • tmccar
      New Member
      • Sep 2011
      • 7

      #3
      Yes, it is part of a library of definitions

      Comment

      • Frinavale
        Recognized Expert Expert
        • Oct 2006
        • 9749

        #4
        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.
        Last edited by Frinavale; Oct 12 '11, 08:00 PM.

        Comment

        • tmccar
          New Member
          • Sep 2011
          • 7

          #5
          OK thanks, I will see if I can make those corrections, thanks

          Tom

          Comment

          • Frinavale
            Recognized Expert Expert
            • Oct 2006
            • 9749

            #6
            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.

            Comment

            • tmccar
              New Member
              • Sep 2011
              • 7

              #7
              Yes, thanks. It's fixed

              tom

              Comment

              Working...