Clif,
     I suspect that in VB6, the first line
transfered the values, but in VB.Net it is transfering the pointer. Here's
the difference:

     ABC = 100^200^300
     DEF = ABC
    
DEF<3> = 400
     ABC = DEF

The
above moves the values into DEF (line 2), modifies DEF separately from ABC
(line 3) and then updates ABC with the same value as DEF (line 4). This
is, I believe how VB6 does it.
The other way to read the above is
that DEF receives a pointer to ABC (line 2) which makes them share the
same spot in memory. We modify the value in ABC and DEF at the same time
(line 3) because they are functionally the same variable. You can't
perform the '=' (line 4) because you are trying to change the pointer in
ABC to itself.
-- 
Charles Barouch
[EMAIL PROTECTED] -
Consulting
[EMAIL PROTECTED]   - ETL/Migration/Integration
(718)
762-3884x1

[EMAIL PROTECTED] wrote:
| Greetings, all.
|

| I am converting some VB6 code with UniObjects to VB.NET (2005).
The
| following
| snippet is not working on .NET. I've search
the list archives and am still
| not
| understanding the
issue.
| 
| objDynAry = objFILE.Record
|
objDynAry.Field(3).StringValue = CStr(Now)
| objFILE.Record =
objDynAry
| 
| The third statement is the one that works on VB6
but take the On Error
| routine
| in .NET.
| 
| Can
someone explain to me what the problem is? (Yes, I could code around
| this,
| but this kind of thing is done a lot in this code--not my
code, BTW
| &#9786;
| 
| Thanks for any insight.
|

| 
| --
| 
| Regards,
| 
| Clif
|
-------
| u2-users mailing list
|
[email protected]
| To unsubscribe please visit
http://listserver.u2ug.org/
|
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to