I get the compile error when I call the method. Is there something different to do when passing an array as a parameter?
Here's the code I have now:
DataSet ds = server.GetDemoByPk(100);
ArrayList dso = ConvertField(ds.Tables["Demo"].Rows[0][10]);
ArrayList ConvertField(byte[] theData)
{
ArrayList result = new ArrayList();
return result;
}
Error 1:
The best overload method match for 'ConvertField(byte[])' has some invalid arguments.
Error 2:
Argument '1': cannot convert from 'object' to 'byte[]'
I tried casting the field to byte[], then got the following error on the same line:
An object reference is required for the nonstatic field, method, or property 'ConvertField(byte[])'
>And what line gives you the error message?
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer