J
Jeremy
I have some classes which contain a datarow as a property. In application
code, I sometimes dim a "shortcut variable" to simplify code.
The problem is, sometimes values seem to vanish. That is, they seem to be
there, but never arrive in the database. It's as if values set using the
shortcut var are in some shadowy copy of the datarow -- seemingly present
when demanded by the debugger, but absent when passed into the update
command.
My understanding is that the variable r (below) is really a pointer to the
original instance, and when I do r.item("fld") = "fred", the original row is
changed. Am I wrong here?
An
The class:
public class myClass
property myRow as datarow
....
end class
In the application:
dim myInstance as new myClass
public sub dosomething
dim r as datarow = myinstance.myrow
... code using r ...
end sub
code, I sometimes dim a "shortcut variable" to simplify code.
The problem is, sometimes values seem to vanish. That is, they seem to be
there, but never arrive in the database. It's as if values set using the
shortcut var are in some shadowy copy of the datarow -- seemingly present
when demanded by the debugger, but absent when passed into the update
command.
My understanding is that the variable r (below) is really a pointer to the
original instance, and when I do r.item("fld") = "fred", the original row is
changed. Am I wrong here?
An
The class:
public class myClass
property myRow as datarow
....
end class
In the application:
dim myInstance as new myClass
public sub dosomething
dim r as datarow = myinstance.myrow
... code using r ...
end sub