On Tue, 2003-06-03 at 14:34, [EMAIL PROTECTED] wrote: > Is there any way I can change the state of an already instantiated object? > > ex: > > $thisone = new Object(); > > $content = something; > > $thisone -> SetContent($content); > > $thisone -> Display(); > > > That creates the object. Now if I want to change its content: > > $content = something different; > > $thisone -> SetContent($content); > > $thisone -> Display(); > > This does not work but it illustrates what I want to do. I need to change > the content property of the "thisone" object.
This should definitely work. However, without the code to the Object class there is little way to tell where the problem is. Presumably the SetContent() method is deciding not to work a second time for some reason (perhaps the new content fails to satisfy some kind of requirement for valid content input?) Torben > R/T > -- Torben Wilson <[EMAIL PROTECTED]> +1.604.709.0506 http://www.thebuttlesschaps.com http://www.inflatableeye.com http://www.hybrid17.com http://www.themainonmain.com -----==== Boycott Starbucks! http://www.haidabuckscafe.com ====----- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php