查看单个帖子
旧 2009-04-12, 08:55 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】file open dialog bo

file open dialog box
i have been trying to programmatically populate the file/open dialog box using swapp::getopenfilename; for example:
fname = swapp.getopenfilename ("open file", "123456", "*.sldasm|*.sldasm", 0, options, cname, dname)
this populates the file type dropdown listbox with *.sldasm, but doesn't populate the file name dropdown listbox. does anyone know how to populate the file name box, or am i going about this completely the wrong way? should i call swapp.setcurrentworkingdirectory, or setpromptfilename? please advise!
thanks!!
to defeat the wheat, go against the grain.
the file has to exist and be in the folder that opens intially in order for it to populate the filename box
good to know. thanks, luke.
to defeat the wheat, go against the grain.
quick
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)