等到其他表单完成 foxpro

Wait until the other form finish foxpro

如何在继续执行代码之前等待其他窗体关闭。我需要用户在处理其他信息之前验证一些数据。下面是我的代码,但在它显示表单后它仍然继续 运行 另一个代码

USE data\tblcashadvanceexemption ALIAS CA
**promp the user the excemption and user should validate the data
IF RECcount()>0
  thisform.Hide()
  DO FORM frmcaapproval
ENDIF

通过将其 WindowType 属性 设置为 1 使第二个窗体成为模态窗体。

添马舰