I didn't mean I invented it. When I needed it and didn't know if one already existed or not it was the solution I came up with (maybe reinvented the wheel, I don't know - VFP3-5 days:).
I didn't use the line object or any other object because:
1) All objects (except new empty) have some properties/events/methods of their own built-in. Using one of them I would need to make sure I don't inadvertently name one of my parameters to be same as one of the built in PEM (ie: I might want to use 'Left' as a parameter name and maybe with a different datatype). Name clas I mean.
2) In days I started to use it there weren't a method to add a property (neither addproperty method nor function and even addprop.fll weren't around then). Historical reasons IOW - I was happy to see 'empty' were at last there:)
Cetin
>Cetin, i learn things new every day. i didn't know you "invented" it.
>
>every time i see code, i have to familiarize myself with what's going on. I'm sure most people here would understand exactly what you've done here, but not me. Now that I've "experimented" a little, i see. For example, I have never used scatter, although i've seen it used a lot. Therefore, i didn't know what "scatter name" or what "blank" means. Once i figured it out, in that the "name" creates an object, and the "blank" makes it have empty properties (just like createobject("empty")), i thought that this simple code was pretty cool.
>
>Why didn't you simply use the "line" object? i know it does have some properties but i thought it was often used before "empty" came about (at least the official MS version of "empty") :-)
>
>Paul