>Hilmar,
>
>>I find that fascinating, too. It would never have occured to me.
>
>It's pretty rare that your only need an object lifetime to be the duration of a single WITH statement.
Yes, that is a practical consideration that has to be considered. This may also make you want to avoid the construct in the first place, so you don't have to rewrite your code later. (For comparison, you might use a DO CASE instead of IF, even if you have only two cases, because you expect further cases in the future.)
I still find it fascinating, but I might not use it often.
> FWIW I think if you do a search on "with createobject" here you'll find that it's been posted in messages dating quite a way back.
121 instances. Problem is, it doesn't always appear in code. For example: "...if i created this object
with createobject()". <g> I don't feel like checking each and every one of the 121 instances.
But I guess you are right, in that it was probably mentioned previously.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)