Problems when Passing Business Object ByRef


Author
Message
Tim Dol
Tim Dol
StrataFrame User (446 reputation)StrataFrame User (446 reputation)StrataFrame User (446 reputation)StrataFrame User (446 reputation)StrataFrame User (446 reputation)StrataFrame User (446 reputation)StrataFrame User (446 reputation)StrataFrame User (446 reputation)StrataFrame User (446 reputation)
Group: Forum Members
Posts: 340, Visits: 1.4K
I have two related business objects. I have some code to add records to both business objects and when I execute this code within a form, the code runs fine and the records are added properly.

I needed the ability to share this logic with other programs so I moved my logic to the parent business object class and pass the child business object ByRef.  When I execute the code, I get an error creating a new row on the child BO.  (System.IndexOutOfRangeException). Index 0 is either negative or above rows count.

It seems to execute the NewRow fine and it actually sets the Fk value correctly on the child record but as soon as I try to assign something to any other field it errors out.

Any Idea's??

Thanks

Tim

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Tim Dol - 17 Years Ago
Tim Dol - 17 Years Ago
Trent L. Taylor - 17 Years Ago
Tim Dol - 17 Years Ago
Tim Dol - 17 Years Ago
                         I think Trent emailed you back the option that states that the...
StrataFrame Team - 17 Years Ago
                             Yes he did. Thanks. TIm
Tim Dol - 17 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search