Home > Archive > dBASE Questions and Answers > February 2006 > Entryfield and onChange events









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Entryfield and onChange events
Pieter van Heerden

2006-02-10, 3:24 am

An onChange event has been programmed for an entryfield. On changing the content of the entryfield from the keyboard results in the execution of the onChange program. However, the onChange event does not take place when the content of the entryfield is
changed programmatically. How do get an onChange event to fire when the entryfield contents is changed programmatically?

Ronnie MacGregor

2006-02-10, 3:24 am


On Fri, 10 Feb 2006 03:34:02 -0500
Pieter van Heerden said :

> the onChange event does not take place when the content of the entryfield is changed programmatically


This is the correct "WAD" behaviour. There may be times when the developer does
not want the onChange to fire after a programmatic change in value, and this
would be a real problem if automatic firing took place.

You, the developer know if you want this event to fire after such a change and
can fire it manually from code :

form.myobject.onChange()

--
Ronnie MacGregor
Scotland

Ronnie at
dBASEdeveloper
dot co dot uk

www.dBASEdeveloper.co.uk



Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com