Passing Business Objects as variables


Author
Message
choyt
choyt
StrataFrame User (132 reputation)StrataFrame User (132 reputation)StrataFrame User (132 reputation)StrataFrame User (132 reputation)StrataFrame User (132 reputation)StrataFrame User (132 reputation)StrataFrame User (132 reputation)StrataFrame User (132 reputation)StrataFrame User (132 reputation)
Group: Forum Members
Posts: 78, Visits: 246
Hi All

I want to pass a business object from one method to another. At first this seemed pretty simple but I'm not having much success except to do it as a generic object.  Am I missing something really dumb, is there another way or is this just it?

Public Sub DoIt(b as strataframeobject)

       ' in this example, i want to be able to pass different objects and load the results into cache

end function

Thansk!

Reply
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
Greg is correct.  You just need to type your parm as a BusinessLayer or BusinessLayerBase and it will then accept any BO.  You can then DirectCast or CType it if you know what to expect on the other side.  Otherwise you can just leave it typed as the BusinessLayer and interact with the "known" methods and properties.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search