Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rewrite question
Message
From
22/01/2003 08:10:49
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
22/01/2003 08:02:55
Julie Ball
Gardner Publications, Inc.
Cincinnati, Ohio, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00744184
Message ID:
00744187
Views:
11
>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)
Previous
Reply
Map
View

Click here to load this message in the networking platform