Re: InteractiveChange and ProgrammaticChange Oddness

Author: Peter Cushing

Posted: 2016-06-16 at 03:22:19

On 15/06/2016 15:45, Ken Dibble wrote:

> <snip>

> The InteractiveChange() method of this control (fires when the user is

> typing in the control) will compare THIS.Value to THIS.OldValue and if

> they are not the same, THIS.Value will be copied to THIS.OldValue,

> like so:

>

> IF THIS.Value <> THIS.OldValue

> THIS.OldValue = THIS.Value

> ENDIF

I don't get why you are checking using the interactivechange method.

This fires for every character you type in the control. If you want to

check a date I would use the Valid() or lostfocus() methods so you can

check the whole date not a half entered date. I only use the

interactivechange method when doing searches where you want to display

partial matches.

Peter

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

_______________________________________________

Post Messages to: ProFox@leafe.com

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/ef97da11-6707-6ec9-0a80-a075b8fa6648@whisperingsmith.com

** 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.

©2016 Peter Cushing