>Doesn't the function NewObject() do something similar? It seems to have a parameter to specify the classlib.
Or more likely the METHOD NewObject(). I am just noticing there are both... Personally, I really only ever used AddObject() and CreateObject(). And AddObject() also seems to exist both as a method, and as a function. Seems to be new in VFP 9 (as compared to VFP 6, which I have used so far). Gets a little complicated, sigh.
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)