Tristan,
Sorry I just assumed you were on vfp9. In that case add          

thisform.list1.refresh()

at the end of the same section. This solves the problem

Dave Crozier

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Tristan Leask
Sent: 05 June 2007 11:22
To: [email protected]
Subject: RE: Valid event screwing with click event?

Hmm, another reason to upgrade!  lol

Not being able to test that, wouldn't that just refresh the list box and
not actually fire the interactive change event?

In theory, shouldn't the interactive event fire after the valid event
has finished returning a .T.?  Thus...

1) User modifies the edit box.
2) User then clicks on another entry in the list box.
3) Valid event fires asking user if they want to save the changes.
4) User clicks Yes, record is updated.
5) Interactive event then fires.
6) Interactive event uses the newly selected record and loads the text.

Where as this is what actually happens...

1) User modifies the edit box.
2) User then clicks on another entry in the list box.
3) Valid event fires asking user if they want to save the changes.
4) User clicks Yes, record is updated.
5) The selected option changes to the one selected (after the valid
event has fired).
6) Interactive event does not fire, thus the text for the newly selected
entry does not get loaded into the edit box.


I hope this makes sense. <bg>

Cheers

Tristan

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Dave Crozier
Posted At: 05 June 2007 11:13
Posted To: Profox Archive
Conversation: Valid event screwing with click event?
Subject: RE: Valid event screwing with click event?

Tristan,
Add a RaiseEvent(thisform.list1,"Requery") at the end of the section
starting "case lnAns=6"

Dave Crozier

----------------------------------------------------------------------------
----------------------------------
This email was sent to [EMAIL PROTECTED] Unless otherwise agreed expressly
in writing by Marine Software Limited, 
this communication and attachments are to be treated as confidential 
and the information in it may not be used or disclosed except for the 
purpose for which it was sent.
If you are not the intended recipient of this  communication  you should 
destroy it without copying, disclosing or otherwise using its contents.
Please notify the sender immediately of the error. 
[EMAIL PROTECTED]

Marine Software Limited. Registered in England & Wales. No 2576494
Regsitered Office. Unit3, Aylesham Business Pk, Aylesham. Kent. UK
----------------------------------------------------------------------------
--------------------------------------



[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://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