Hi

Im assuming "setAttribute" is still the standard way of setting an
attribute ? (if you want the handlers to be notified) That isnt
changing is it ?

I would really like to see the Debug.format ability in the LzText
package. I have numerous occasions where I would like to format some
<text> data but LzText doesnt have a format option. Will we see this
in legals ?

Thanks

On 10/4/06, P T Withington <[EMAIL PROTECTED]> wrote:
> You shouldn't need the getAttribute.  That is there for backwards
> compatibility from days gone by.  It should suffice to say;
>
>    xp = datapath.xpath;
>
> Also I like to tout the following features of the Debug(er).  If you
> say:
>
>    Debug.write('this.datapath =', this.datapath);
>
> It will output `this.datapath` in an 'inspectable' fashion.  You can
> click on it, and see its properties.  Which might have helped you
> find what you were looking for.  [By default, Debug.write will output
> all its arguments concatenated together with a space between each
> one.  By passing objects, they will be inspectable, whereas if you
> concatenate the string yourself, the debugger doesn't know what your
> objects were, so it can't offer inspection.]
>
> Also, there is Debug.format.  You can say:
>
>    Debug.format("this = %w, this.datapath = %w, this.datapath.xpath =
> %w\n", this, this.datapath, this.datapath.xpath);
>
> Debug.format takes printf-like format strings.  %w says to print the
> object in an inspectable way.  (In Legal's, any of the formatting
> directives will print inspectably if the thing they are formatting is
> an object.  So for instance, %s will print a 'prettier' version of an
> object, but in a way that you can still click on it to inspect its
> innards.)
>
> Hope that helps.

_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

Reply via email to