打开OpenDialog后按取消退出,OpenDialog是没有执行的吧?但我在我的程序中这样写:
....
var
PlayList:TStrings;
....
if OpenDialog1.Execute then
 PlayList:=OpenDialog1.files
....
我第一次执行了OpenDialog选择文件后,没有问题,PlayList.count显示为我的文件选取数目,如PlayList.count的值变为5,在这个基础上我按第二次打开OpenDialog对话框后按取消退出,发现Playlist.count变为0,为什么?不是没有执行吗?怎么会改变我本来的PlayList.count的值?