Alaska Software Inc. - class question
Username: Password:
AuthorTopic: class question
Toma Gromclass question
on Mon, 02 Apr 2007 13:58:49 +0200
When maintaining arrays in xBase++ it is possible to assign more than one 
variable as a pointer to the array content.

Also it is possible to copy entire content under another pointer variable 
with Aclone() function.

But how to achieve those both functionalities with class variable ?

Can I preserve the original object contents just with asigning it's accesing 
variable (object var) to another variable ?

LOCAL oVar1 := MyClass():New()
LOCAL oVar2

oVar1:cPropVar := "John"
oVar2 := oVar1
oVar1:cPropVar .= "Elton"

? oVar2:cPropVar  ( I would like it to be John, but wouldn't it be Elton 
with such approach ? )

Best regards

Toma
Toma GromRe: class question
on Mon, 02 Apr 2007 21:16:37 +0200
Question has been moved to ordinary generic...