>I am very new to Visual FoxPro 7 and I am in the process of rewritting Fox2x projects in VFP7. Here is my question. In 2x, when we wanted to set the cursor in a particular edit box we used _CUROBJ = OBJNUM(txt.compy), but what do you do in VFP7?
First, some modern terminology: When the cursor is in an object, it is said that the object "has the focus".
The usual method is to use the SetFocus method, using the method's name:
ThisForm.TxtLastName.SetFocus()
HTH,
Hilmar.
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)