B
bidalah
Hello all,
I am sure there is a simple answer to this question. There just isn't
a simple way to describe it for a search engine.
I have a vb.net program consisting of several windows forms,
miscellanenous classes, and modules. I want all of these classes to
access and update the same instance of an ado dataset and I'm unable
to do it. I thought I could simply create a new instance of the
dataset in a public module. I can't; I still lose all information
storied in the datatable by a child routine as soon as that routine
"returns" to the parent.
Ofcourse I could reference the dataset in every function and
explicitly 'return' it at the end, but that seems unecessarily
complex, particularly since many of the functions that are updating
the dataset are already returning other information. Can anyone tell
me what the procedure is to define a common dataset instance?
I am sure there is a simple answer to this question. There just isn't
a simple way to describe it for a search engine.
I have a vb.net program consisting of several windows forms,
miscellanenous classes, and modules. I want all of these classes to
access and update the same instance of an ado dataset and I'm unable
to do it. I thought I could simply create a new instance of the
dataset in a public module. I can't; I still lose all information
storied in the datatable by a child routine as soon as that routine
"returns" to the parent.
Ofcourse I could reference the dataset in every function and
explicitly 'return' it at the end, but that seems unecessarily
complex, particularly since many of the functions that are updating
the dataset are already returning other information. Can anyone tell
me what the procedure is to define a common dataset instance?