IF value = 1 THEN
if right(docname,3) = "txt" then
tab_1.tabpage_1.dw_1.SaveAs(docname, text!, FALSE)
end if
if right(docname,3) = "xls" then
tab_1.tabpage_1.dw_1.SaveAs(docname, Excel!, FALSE)
end if
if right(docname,3) = "dbf" then
tab_1.tabpage_1.dw_1.SaveAs(docname, dBASE2!, FALSE)
end if
end if
File not found If PowerBuilder doesn't find the file, it creates a new file, giving it the specified name, if the fileaccess argument is set to Write!.
pb本身就可以搞定
FileOpen ( filename {, filemode {, fileaccess {, filelock {, writemode
{ creator, filetype }}}}} )
File not found If PowerBuilder does not find the file, it creates a new file, giving it the specified name, if the fileaccess argument is set to Write!.