1、使用全局变量: Public nPath, nName, nID nPath = ... nName = ... nID = ... 2、使用屏幕的属性 _Screen.AddProperty("nPath") _Screen.AddProperty("nName") _Screen.AddProperty("nID") _Screen.nPath = "C:\" …… 使用第二种办法的好处是在清理内存时不会产生额外的影响。