is "params" working as expected

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Claire

    is "params" working as expected

    Hi, either I'm going mad or is params not working anymore in VS 2005?

    I have function as follows
    public tableEquipment[] ReadEquipment(b ool ReadImages, params Int64[]
    RecIDs)
    {
    }

    if I call "tableEquip ment equipment = myDatabase.Read Equipment(false ,
    RecID);"
    I'm getting a compiler error that "Error 1 Cannot implicitly convert type
    Database.tableE quipment[]' to 'Database.table Equipment' "



  • Claire

    #2
    Re: is "params&qu ot; working as expected

    omg, ignore me, brain didnt compute what the error message was telling me.
    Reboot brain!
    (should have typed "tableEquip ment[] equipment =
    myDatabase.Read Equipment(false ,
    RecID);")


    Comment

    Working...