Although RAISEEVENT() may not help in this situation, it is a very handy tool. 
I use it quite a lot - particularly to emulate the Click event of a control 
rather than than traditionally calling the the control's Click() method.

Laurie


________________________________
 From: Andrew Stirling <[email protected]>
To: [email protected] 
Sent: Friday, 28 February 2014, 15:23
Subject: Re: Leaving a grid box via valid
 

Thanks Peter, Dave & Rafael

I'll use the Lostfocus event.
I'm using VFP9 service pack1, so the 'RETURN thisform.cmdSendTest' 
should have worked re the help file. I even tried a standard grid in 
case it was my framework getting in the road.

Dave, I will have a look at RaiseEvent, never tried that before.

Kind regards

Andrew Stirling
01250 874580
[email protected]
http://www.calcpay.co.uk


On 28/02/2014 14:49, Peter Cushing wrote:
> Andrew Stirling wrote:
>> Hi
>>
>> I have a grid with a single column (test1) that will accept double
>> click or 'Y' / 'N'
>> With the double click I can go to the next place via
>> thisform.cmdSendTest.setfocus
>>
>> To accept the 'Y' I use the Valid event, Valid event does not allow
>> setfocus, so I use
>> RETURN thisform.cmdSendTest
>> Unfortunately its not working.
>> any ideas?
>>
>>
> You could put the code in the lostfocus event but it depends if you want
> to use the valid to stop them moving off the control without putting in
> a value.
> Does double click put in a Y, or toggle between Y and N?
>
> Peter
>
>
> ----------------------------------------------------------------
>
>
>
> Rajan Imports has changed - we are now Whispering Smith Ltd.  For more
> information see our website at www.whisperingsmith.com
>
>
> Please update your address book with my new email address:
> [email protected]
>
> .
>
> This communication is intended for the person or organisation to whom it
> is addressed.  The contents are confidential and may be protected in
> law.  Unauthorised use, copying or disclosure of any of it may be
> unlawful.  If you have received this message in error, please notify us
> immediately by telephone or email.
>
> www.whisperingsmith.com
>
> Whispering Smith Ltd
> Head Office:61 Great Ducie Street, Manchester M3 1RR. Tel:0161 831 3700
> Fax:0161 831 3715
> London Office:17-19 Foley Street, London  W1W 6DW Tel:0207 299 7960
>
>
[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to