PowerBuilder Forum

Members Login
Username 
 
Password 
    Remember Me  
Post Info TOPIC: How can I do a User Object copy?


Newbie

Status: Offline
Posts: 1
Date:
How can I do a User Object copy?


I have a question!

How at last, someone can make an exact copy (by code) of a user object in PB.
I mean that, if I need to copy the whole user object to another one, how can I do that with coding?
Not just to point to the other user object memory address but to make a full copy on a different memory address. So, after that, the two objects will have at first the same values in their variables but when I change a value on the first, NOT to auto change to the second one too.
Have you any code example of how this can happen with an easy way?

Let's say that A an B is User Objects of the same type
If we only say
B = A
it will make a memory address pointing of B to the memory address of A so if after that, variable values are changed on A, the values of the same variables on B will changed too in the same time.
This is NOT that I want. I need to have two completly different memory sets for these objects. Only the initial copy of their values is what I need.

Thanks for your time!


PS: Sorry for my poor English! Its not my first language! ashamed

__________________
So, so you think you can tell, heaven from hell...
Page 1 of 1  sorted by
 
Quick Reply

Please log in to post quick replies.

Tweet this page Post to Digg Post to Del.icio.us


Create your own FREE Forum
Report Abuse
Powered by ActiveBoard