Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems calling a routine ...

Status
Not open for further replies.

Dalarna

Programmer
Mar 8, 2010
22
SE
Hi all!
Maybe there's a simple solution to this problem, but I can not find the solution :) :-(

An example ...
I have two entry fields and one ReadOnly field

Entry1 = 1
Entry2 = 2 (calls a routine from "Accepted" embedded source)
(Entry1 + Entry2 = ShowResult)
ShowResult = 3

This works without problem but ...if i will change the calculation

Example
I change the data in Entry1 but not change data in Entry2, then I must retype the data in Entry2 and press Enter for the routine should be called ... but I would just like to press Enter in the field to call the routine.

Any suggestions on this "problem"?

From Sweden
/Magne

PS. It´s only from Entry2 the new calculation should be made.




 
Hi,

why dont you call your routine in accepted-embed from entry 1 and 2.
It's calculate the showresult, whatever entryvalue you change.

To assure that both entrys are filled, you can check it before calculate.


Regards, cagiv
 
Hi!

To force the EVENT:Accepted of a control to be fired EVEN if the control contents are not changed, you need to do a ?EntryControl{PROP:Touched} = True in the EVENT:Selected embed - after parent call.

You could use the free ControlMonitor from which fires it's own embeds whenever the control contents change.

Regards
 
Hi!
It worked great with PROP:Touched = True
Thanks for the help!
/Magne
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top