我在一个用ShowModal打开一个Form,在Form中我把ModalResult赋值1,可是当我关闭From后,ShowModal返回的老是2,这是为什么啊!帮助上说An application can use any integer value as a modal result value. 可是返回的怎么和赋值的不一样呢?Note: This property is modified automatically by some components such as the TButton object. 这句话怎么理解。怎么TButton 控件可以修改ModalResult属性呢?明白的高人帮我说说ModalResult的用法吧!!!
在外部程序中判断modelresult为mrCancel或mrOK,或其它值就可以了。