D
Dom
I'm getting a "Parameter Count mismatch error" with the following.
At the class level:
delegate void lvwCallback (object[] Args);
Within a method of the same class:
SQLDataReader r = ...
int TopCount = 100;
lvwCallback Job = new lvwCallback(ShowCurrentRecords);
lvwCurrentRecords.Invoke(Job, new object[] { r,
TopCount } );
And then another method in the same class:
private void ShowCurrentRecords(object[] Args)
{
SqlDataReader r = (SqlDataReader)Args[0];
int TopCount = (int)Args[1];
...
}
The error occurs on the "lvwCurrentRecords.Invoke" line above.
What's happening?
Dom
At the class level:
delegate void lvwCallback (object[] Args);
Within a method of the same class:
SQLDataReader r = ...
int TopCount = 100;
lvwCallback Job = new lvwCallback(ShowCurrentRecords);
lvwCurrentRecords.Invoke(Job, new object[] { r,
TopCount } );
And then another method in the same class:
private void ShowCurrentRecords(object[] Args)
{
SqlDataReader r = (SqlDataReader)Args[0];
int TopCount = (int)Args[1];
...
}
The error occurs on the "lvwCurrentRecords.Invoke" line above.
What's happening?
Dom