Hi Mark,
That's a bug in VFP, but not in VARTYPE(), ir correctly returns "O". The bug is rather that Text2 in your sample is not really released, but made unavailable to your code. Try this:
? Thisform.TestBox1.Text2.Left && error
ox = Thisform.TestBox1.Text2
? ox.Left && works
ox.SetFocus() && crash
Christof
--
Christof