>hi guys,
>
>i am trying to create to add a spell check option to my menu bar. the idea is that the user can click on this spell option from the menu and it would spell check whatever field - character or memo that the cursor was currently on. so the question is how do i reference that field? i have been looking at the activecontrol property but it doesn't seem to be behaving and also i won't necessarily know which form the user is on when they click on the spell check option.
>
>thanks,
>
>n.
Make sure that there is Active Form, Active Control and it's of the required type
IF TYPE("_Screen.ActiveForm.Name")="C" ;
AND TYPE("_Screen.ActiveForm.ActiveControl.Name") = "C" ;
AND _Screen.ActiveForm.ActiveControl.Baseclass = "Textbox"
ENDIF
--sb--