Ahhh sheez... I moved all my code to another app to discern where I went
wrong. It appears that my regex code strips out the style data. I was
looking in the wrong place all along. Whether it's something intrinsic to
regex or a fault with my code is still a question.
Back to the drawing board...
~joe
-----Original Message-----
From: realbasic-nug-bounces at lists dot realsoftware dot com
[mailto:realbasic-nug-bounces at lists dot realsoftware dot com] On Behalf Of
Joseph
Claeys
Sent: Monday, February 28, 2005 7:53 PM
To: 'REALbasic NUG'
Subject: RE: object=object
Well I rave about RB and I have the M$ IDE. I'm ranting now but that's more
directed at myself. When I look at the original editfield (it definitely
has styled text in it) the debugger shows text in the text property, the
font and some unreadable (presumably meaningful) information in the
textstyledata property, and nothing in the styledtext property (an empty
listbox with two column headers - "name" and "value").
So even after reading the docs I'm unclear as to what the styledtext is
suppose to contain. I thought it would have text values and the subsequent
style data listed in the listbox but that's not what I'm seeing. I can't
help but think that I'm missing something really obvious (only because I've
been in jams like this before only to find that I was ignoring something
obvious).
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.
~joe
-----Original Message-----
From: realbasic-nug-bounces at lists dot realsoftware dot com
[mailto:realbasic-nug-bounces at lists dot realsoftware dot com] On Behalf Of
Andy Dent
Sent: Monday, February 28, 2005 6:48 PM
To: REALbasic NUG
Subject: RE: object=object
>"Why not? Seems to me that's exactly what it does." Best, - Joe
>
>I don't know why not. In the debugger the styledtext is always empty.
the Windows debugger has been known to not show values, try resizing the
debugger window. There was a thread a while back about the Windows IDE in
general and I've had a recent reminder where a very experienced friend who
was helping for a while (on Windows) said "I can't see why you rave about
RB". I spent a while using the Windows IDE and realised how much worse the
debugger is than the Mac.
>StyleField.styledtext=jp.TagReplace(StyleField,"<<(.*)>>",FieldValues).
>style
>dtext
I'm a bit bothered by you assigning back to the styled text in the same
operation - try copying it to another styled text first.
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>
_______________________________________________
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>
_______________________________________________
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>
|