Hi all,
Thanks in advance!
I have been fighting this for months off and on and found a way to make sure it does not corrupt data was a quick fix while I chased it down. Must be slipping as i can't chase it down.
Back ground.
Form is on a set with tables connected as 1-1 and 1-m
Form has several layers of conditional objects
On pressing a button that puts the money layer on top, variables are filled from the money fields in a child table.
the script is then run to do calcs and placed back in the fields on the form
the script run is a large one that calculates money
The script seemd to be running at odd times and messing up the saved numbers
I placed a stopper at the beginning of the script so saved deals could no longer be saved or even calculated
NOW is when I found the script was running when running through an embedded browse from record to record. There is nothing there to trigger the script. I have slowly eliminated anything that should cause the script to run. I can not stop it from running while I run through the embedded browse. It runs about every 3 to 5 records all by itself.
It is not set to run onsave or anyother way I can think of. It is set only to run onentry of specific monetary fields or on leaving them using action scripting/xbasic. NONE of these are in the browse layer.
Any thoughts are appreciated.
Ask anything!
This is the stopper so i know when it tries to run this script.
.
Thanks in advance!
I have been fighting this for months off and on and found a way to make sure it does not corrupt data was a quick fix while I chased it down. Must be slipping as i can't chase it down.
Back ground.
Form is on a set with tables connected as 1-1 and 1-m
Form has several layers of conditional objects
On pressing a button that puts the money layer on top, variables are filled from the money fields in a child table.
the script is then run to do calcs and placed back in the fields on the form
the script run is a large one that calculates money
The script seemd to be running at odd times and messing up the saved numbers
I placed a stopper at the beginning of the script so saved deals could no longer be saved or even calculated
NOW is when I found the script was running when running through an embedded browse from record to record. There is nothing there to trigger the script. I have slowly eliminated anything that should cause the script to run. I can not stop it from running while I run through the embedded browse. It runs about every 3 to 5 records all by itself.
It is not set to run onsave or anyother way I can think of. It is set only to run onentry of specific monetary fields or on leaving them using action scripting/xbasic. NONE of these are in the browse layer.
Any thoughts are appreciated.
Ask anything!
This is the stopper so i know when it tries to run this script.
Code:
var->dealstatus = names->status if var->dealstatus = "S" then 'Displays a message box (style:'OK Button', image: 'Stop symbol', id: 'stockwarning'). DIM status_result as N DIM status_warning_OK_Button as L status_warning_OK_Button = .F. title_var = "This is sold" message_text_var = <<%text% This is a sold and locked deal. You will need to make is active to change figures. !%text% status_warning_result=ui_msg_box(title_var,message_text_var,UI_OK+ UI_FIRST_BUTTON_DEFAULT+ UI_STOP_SYMBOL) 'Test to see which button on the message box was pressed.... SELECT CASE status_warning_result = UI_OK_SELECTED status_warning_OK_Button= .t. END SELECT goto exitdeal end if
Comment