jspruit wrote:
HI,
I'm doing the following in a CF SQLCE adapter project:
maxrow = Convert.ToInt16(adapter2.GetScalar(EntityFieldFactory.Create(TubeFieldIndex.TubeRow), AggregateFunction.Max));
i get error cannot error cannot convert from 'object' to 'bool'.
When i try the same in a normal windows application this works fine.
Anybody knows how to work around this ?
Thanx in advance.
Jan
Jan,
I don't know that I can answer your question with the information provided. What I do have are lots of questions for you...
Can you please post a more complete example?
What datatype is maxrow? I would assume it to be an integer.
Does the line listed above throw the error?
Is the error on the convert or the GetScalar or the Create function?
Can you provide the stack trace that accompanies the error?
Answering these questions for yourself may provide an answer. If not please post additional information and we will help you figure it out.