Updating to API2 Error

I’m Getting this terribly confusing compile error, what is causing this?:

frmPeople.PopulateHistory, line 39
There is more than one method with this name but this does not match any of the available signatures.
lstHistory.CellValueAt(lstHistory.CellValueAt, 1) = CheckDate(rs.Column(“ValidTo”))

frmPeople.PopulateHistory, line 40
There is more than one method with this name but this does not match any of the available signatures.
lstHistory.CellValueAt(lstHistory.CellValueAt, 2) = CheckDate(rs.Column(“DateEntered”))

frmPeople.PopulateHistory, line 41
There is more than one method with this name but this does not match any of the available signatures.
lstHistory.CellValueAt(lstHistory.CellValueAt, 3) = rs.Column(“EnteredBy”).StringValue

frmPeople.PopulateHistory, line 42
There is more than one method with this name but this does not match any of the available signatures.
lstHistory.CellValueAt(lstHistory.CellValueAt, 4) = rs.Column(“MembershipTypeDescription”).StringValue

frmPeople.PopulateHistory, line 43
There is more than one method with this name but this does not match any of the available signatures.
lstHistory.CellValueAt(lstHistory.CellValueAt, 5) = rs.Column(“OrderID”).StringValue

For this code:

lstHistory.Selected(0) = True
lstHistory.RemoveAllRows

  While (Not rs.AfterLastRow)
    
    lstHistory.AddRow CheckDate(rs.Column("ValidFrom"))
    lstHistory.CellValueAt(lstHistory.CellValueAt, 1) = CheckDate(rs.Column("ValidTo"))
    lstHistory.CellValueAt(lstHistory.CellValueAt, 2) = CheckDate(rs.Column("DateEntered"))
    lstHistory.CellValueAt(lstHistory.CellValueAt, 3) = rs.Column("EnteredBy").StringValue
    lstHistory.CellValueAt(lstHistory.CellValueAt, 4) = rs.Column("MembershipTypeDescription").StringValue
    lstHistory.CellValueAt(lstHistory.CellValueAt, 5) = rs.Column("OrderID").StringValue
    
    rs.MoveToNextRow
    
  Wend

Shouldn’t it be something like this?:
lstHistory.CellValueAt(ROW, 1) = CheckDate(rs.Column(“ValidTo”))

or even more precise:
lstHistory.CellValueAt(lstHistory.LastAddedRowIndex, 1) = CheckDate(rs.Column(“ValidTo”))

:wink:

1 Like

Yep, that’s a VERY poor information. It needs improvements showing the method name and tried signature if possible.

1 Like

Thanks guys, now I see it was obvious. I Hate these criptick errors.

2 Likes

Not really, sometimes we get blind without a better compiler explanation. This message really deserves a more sophisticated output from Xojo. I recall other cases where Joe R. (compiler engineer) said he needed to enhance some messages, same thing, too generic and wide, almost useless for untrained eyes, seems that this one slipped without being maturated.

2 Likes