StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
Business Objects and Data Access (How do I?)
»
Passing a Business Object as a parameter and want to change the...
Passing a Business Object as a parameter and want to change the Calling Business Object
Post Reply
Like
0
Passing a Business Object as a parameter and want to change the...
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Ger Cannoll
Ger Cannoll
posted 13 Years Ago
ANSWER
Topic Details
Share Topic
Group: StrataFrame Users
Posts: 430,
Visits: 507
I am trying to pass a Business Object as a parameter to a routine, and adjust details on the calling Buisness Object
So a simplified version of my code is:
BoSetDefaults(ref myBO)
My method is:
public static void BoSetDefaults(ref BusinessLayer myBO)
{ myBO["STATE"]= "NY";}
The compliler is objecting that myBO is readonly.
Is there a way to amend the Calling Business Object in the Called Method. If I take out the Call By reference, just the copy that is called gets updated, but I want it to percolate back to the Calling Business Object
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Threaded View
Threaded View
Passing a Business Object as a parameter and want to change the...
Ger Cannoll
-
13 Years Ago
I'm not sure what is going on with the compiler error, but you don't...
Greg McGuffey
-
13 Years Ago
Hi Greg. Finally got to the bottom of this Aside from the confusion...
Ger Cannoll
-
13 Years Ago
Glad you finally got to the bottom of this!
Greg McGuffey
-
13 Years Ago
Post Reply
Like
0
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search