I have this code in the BeforeRowColChange
...and this in the AfterRowColChange event:
Form method FormSetup changes the values of a number of other objects on the form as the user goes up and down the grid.
This all works fine, except when the user clicks Yes on the messagebox. When that happens, the grid property RowColChange is 1 in the BeforeRCC but becomes 0 when the AfterRCC fires and so the method FormSetup doesn't run and the objects are refreshed.
Is there a fix for this situation?
Thanks,
Stewart
Hope that helps,
Stewart
PS If you want to get the best response to a question, please check out FAQ184-2483 first.
Code:
MbReply = MESSAGEBOX("Do you want to save the changes you made")
IF MbReply = Mb_Cancel
NODEFAULT
ELSE && Yes or No
IF MbReply = Mb_Yes
.cmdChangesSave.MyClick()
.FormSetup()
ENDIF
ENDIF
Code:
IF INLIST(THIS.RowColChange, 1, 3)
THISFORM.FormSetup()
ENDIF
Form method FormSetup changes the values of a number of other objects on the form as the user goes up and down the grid.
This all works fine, except when the user clicks Yes on the messagebox. When that happens, the grid property RowColChange is 1 in the BeforeRCC but becomes 0 when the AfterRCC fires and so the method FormSetup doesn't run and the objects are refreshed.
Is there a fix for this situation?
Thanks,
Stewart
Hope that helps,
Stewart
PS If you want to get the best response to a question, please check out FAQ184-2483 first.