drosenkranz
Programmer
When the following code is run from cmdRecalc on the frm_edit_page1 screen,
WHy does the messagebox(lc_str) appear on my frm_adhoc_results screen? It looks like the program just kept on executing the code in my cmdRecalc button- even though I assumed that a DO FORM would halt execution until the form was released.
After it launched the form. Does the cmdReCalc's code continue to execute?
How do I get the code in cmdReCalc to pause on the DO FORM command and resume execution "after" that form is released?
<cmdReCalc>
*
gn_judgement_amt = THISFORM.txtjudgement_amt.VALUE
gd_judgement_date = THISFORM.txtinterest_date.VALUE
*
DO prg_interest_calcs && calculate interest
*
DO FORM frm_adhoc_results && display adhoc calc and allow changes on form
*
THISFORM.txtinterest_amt.VALUE = gn_judgement_int
THISFORM.txtinterest_date.VALUE = gd_judgement_date
private lc_str
lc_str = "J-Date = " + dtoc(gd_judgement_date) + " J-Int = " + str(gn_judgement_int)
messagebox(lc_str)
The 2nd mouse gets the cheese.
WHy does the messagebox(lc_str) appear on my frm_adhoc_results screen? It looks like the program just kept on executing the code in my cmdRecalc button- even though I assumed that a DO FORM would halt execution until the form was released.
After it launched the form. Does the cmdReCalc's code continue to execute?
How do I get the code in cmdReCalc to pause on the DO FORM command and resume execution "after" that form is released?
<cmdReCalc>
*
gn_judgement_amt = THISFORM.txtjudgement_amt.VALUE
gd_judgement_date = THISFORM.txtinterest_date.VALUE
*
DO prg_interest_calcs && calculate interest
*
DO FORM frm_adhoc_results && display adhoc calc and allow changes on form
*
THISFORM.txtinterest_amt.VALUE = gn_judgement_int
THISFORM.txtinterest_date.VALUE = gd_judgement_date
private lc_str
lc_str = "J-Date = " + dtoc(gd_judgement_date) + " J-Int = " + str(gn_judgement_int)
messagebox(lc_str)
The 2nd mouse gets the cheese.