In the older version of FP I used the expression _CUROBJ =
OBJNUM( ) to return to a place on a form. I have been trying to use
the OBJECT.ACTIVECONTROL.PROPERTY to get back to a place in my form
but run out of tries. Can anyone give me an example of how to get back
to a field on a form after I call another form? I come back to my form
now at the same command button that I call the form from. I would like
to come back to an input field. I am using VFP8
TonySper

Re: Returning to an object in a form. by Stephen

Stephen
Wed Aug 24 12:21:56 CDT 2005

try using

<object name>.setfocus()

sincerely

Stephen


"TonySper" <tsperduti@bellsouth.net> wrote in message
news:2f1Pe.34292$XM3.13054@bignews5.bellsouth.net...
> In the older version of FP I used the expression _CUROBJ =
> OBJNUM( ) to return to a place on a form. I have been trying to use
> the OBJECT.ACTIVECONTROL.PROPERTY to get back to a place in my form
> but run out of tries. Can anyone give me an example of how to get back
> to a field on a form after I call another form? I come back to my form
> now at the same command button that I call the form from. I would like
> to come back to an input field. I am using VFP8
> TonySper
>
>
>



Re: Returning to an object in a form. by Jack

Jack
Wed Aug 24 12:21:51 CDT 2005

On Wed, 24 Aug 2005 12:30:32 -0400, "TonySper"
<tsperduti@bellsouth.net> wrote:

>In the older version of FP I used the expression _CUROBJ =
>OBJNUM( ) to return to a place on a form. I have been trying to use
>the OBJECT.ACTIVECONTROL.PROPERTY to get back to a place in my form
>but run out of tries. Can anyone give me an example of how to get back
>to a field on a form after I call another form? I come back to my form
>now at the same command button that I call the form from. I would like
>to come back to an input field. I am using VFP8

Call the SetFocus() method of the object you want to have focus.


Re: Returning to an object in a form. by Eugene

Eugene
Wed Aug 24 17:18:35 CDT 2005

Jack Jackson wrote:
> On Wed, 24 Aug 2005 12:30:32 -0400, "TonySper"
> <tsperduti@bellsouth.net> wrote:
>
>
>>In the older version of FP I used the expression _CUROBJ =
>>OBJNUM( ) to return to a place on a form. I have been trying to use
>>the OBJECT.ACTIVECONTROL.PROPERTY to get back to a place in my form
>>but run out of tries. Can anyone give me an example of how to get back
>>to a field on a form after I call another form? I come back to my form
>>now at the same command button that I call the form from. I would like
>>to come back to an input field. I am using VFP8
>
>
> Call the SetFocus() method of the object you want to have focus.
>


Just an FYI, remember SetFocus can't be called from within a Valid()
event.....I know that isn't what you are referring too, just wanted to
pass it along.

Re: Returning to an object in a form. by TonySper

TonySper
Wed Aug 24 18:09:54 CDT 2005

Thank you all, Stephen, works fine. Better than the old way.
TonySper

"Stephen & Shelagh Ibbs" <stephen@ibbs.org.uk> wrote in message
news:%23uUjUBNqFHA.2652@tk2msftngp13.phx.gbl...
try using

<object name>.setfocus()

sincerely

Stephen


"TonySper" <tsperduti@bellsouth.net> wrote in message
news:2f1Pe.34292$XM3.13054@bignews5.bellsouth.net...
> In the older version of FP I used the expression _CUROBJ =
> OBJNUM( ) to return to a place on a form. I have been trying to use
> the OBJECT.ACTIVECONTROL.PROPERTY to get back to a place in my form
> but run out of tries. Can anyone give me an example of how to get
> back
> to a field on a form after I call another form? I come back to my
> form
> now at the same command button that I call the form from. I would
> like
> to come back to an input field. I am using VFP8
> TonySper
>
>
>




Re: Returning to an object in a form. by Dan

Dan
Thu Aug 25 10:54:31 CDT 2005

Eugene Vtial wrote:
> Jack Jackson wrote:
>> On Wed, 24 Aug 2005 12:30:32 -0400, "TonySper"
>> <tsperduti@bellsouth.net> wrote:
>>
>>
>>> In the older version of FP I used the expression _CUROBJ =
>>> OBJNUM( ) to return to a place on a form. I have been trying to use
>>> the OBJECT.ACTIVECONTROL.PROPERTY to get back to a place in my form
>>> but run out of tries. Can anyone give me an example of how to get
>>> back to a field on a form after I call another form? I come back to
>>> my form now at the same command button that I call the form from. I
>>> would like to come back to an input field. I am using VFP8
>>
>>
>> Call the SetFocus() method of the object you want to have focus.
>>
>
>
> Just an FYI, remember SetFocus can't be called from within a Valid()
> event.....I know that isn't what you are referring too, just wanted to
> pass it along.

Not to worry. VFP will remind them. <g>

Dan