'can't move focus to control ...'

J

Jonathan Leonard

'can't reference a property or method unless the control has focus'

these two errors in combination with one another are making things very
difficult (or impossible). i have a textbox whose default value, which is
the value property, doesn't update on the onChange event. however,
it's text property does. so, i want to read the text property value.
problem with that is the control must have focus. problem with that is the
'can't move focus to control' error. can anybody help?

much thanks to anyone who knows just the right combination of
workarounds here.
 
J

Jonathan Leonard

'can't reference a property or method unless the control has focus'

these two errors in combination with one another are making things very
difficult (or impossible). i have a textbox whose default value, which is
the value property, doesn't update on the onChange event. however,
it's text property does. so, i want to read the text property value.
problem with that is the control must have focus. problem with that is the
'can't move focus to control' error. can anybody help?

much thanks to anyone who knows just the right combination of
workarounds here.

some clarification is probably needed here. it is not from the onChange
event that i'm trying to read the value of .text or the control would have
focus and that would work properly. but, it is the behaviour of the default
value in relation to the onChange event (that is, it doesn't update) which
forces me to use a non-default property (that is, the text property) in a
function that is called from both the onChange event and from the
afterUpdate event.
 
J

Jonathan Leonard

'can't reference a property or method unless the control has focus'
these two errors in combination with one another are making things very
difficult (or impossible). i have a textbox whose default value, which is
the value property, doesn't update on the onChange event. however,
it's text property does. so, i want to read the text property value.
problem with that is the control must have focus. problem with that is the
'can't move focus to control' error. can anybody help?

much thanks to anyone who knows just the right combination of
workarounds here.

some clarification is probably needed here. it is not from the onChange
event that i'm trying to read the value of .text or the control would have
focus and that would work properly. but, it is the behaviour of the default
value in relation to the onChange event (that is, it doesn't update) which
forces me to use a non-default property (that is, the text property) in a
function that is called from both the onChange event and from the
afterUpdate event.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top