| To: | REALbasic NUG <realbasic-nug at lists dot realsoftware dot com> |
|---|---|
| Subject: | RE: object=object |
| From: | Andy Dent <dent at oofile dot com dot au> |
| Date: | Tue, 1 Mar 2005 10:25:48 +0800 |
| Delivered-to: | realbasic-nug at lists dot realsoftware dot com |
| References: | <20050301015343 dot 9B12E76A839 at lists dot realsoftware dot com> |
Joseph Claeys wrote I'm not sure I understand your last comment (probably related to my misunderstanding of style). I figured it was the same as saying editfield1.text=editfield1.text. I think the styledtext apparent "property" on EditField is a pair of accessor functions. There was a recent fix to cope with people assigning it back to itself (which suggests it isn't just a plain property) and I suspect you're just being a bit too clever for the functions behind the scenes. One useful bit of advice for RB in general - if you're having something weird happen with "properties" of the framework classes, copy to a local variable, get that working as you want then copy back. It also makes life easier for the debugger - you can be assured when you've got a local variable there that it is a real variable with a lifespan to the end of the method. If you are trying to display the result of something that's a "property" generated by an accessor function then the debugger has to hang onto a temporary, unnamed variable and I think that's a bit fragile. Yes, there are a lot of "I think"'s in the above :-) Andy _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html> |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Newbie: Windows Status Bar Question, Comcast |
|---|---|
| Next by Date: | RE: object=object, Joseph Claeys |
| Previous by Thread: | RE: object=object, Joseph Claeys |
| Next by Thread: | RE: object=object, Joseph Claeys |
| Indexes: | [Date] [Thread] [Top] [All Lists] |