G
Guest
VB.NET2005 WinXP SP2
I have some code that looks like:-
with _state
....
.data =GetData()
....
end with
where .data is a DataTable
this code has worked fine for 2 weeks
now however although GetData returns 15 rows .data always has rows.count =0
If I change the code to:-
with _state
....
_state.data =GetData()
....
end with
i.e. ignore the With, the code works again
See also this:-
with _state
....
dim dt as DataTable =GetData()
.data=dt 'this fails
_state.data=dt 'this succeeds
....
end with
any Ideas?
Guy
I have some code that looks like:-
with _state
....
.data =GetData()
....
end with
where .data is a DataTable
this code has worked fine for 2 weeks
now however although GetData returns 15 rows .data always has rows.count =0
If I change the code to:-
with _state
....
_state.data =GetData()
....
end with
i.e. ignore the With, the code works again
See also this:-
with _state
....
dim dt as DataTable =GetData()
.data=dt 'this fails
_state.data=dt 'this succeeds
....
end with
any Ideas?
Guy