viewsea(viewsea) :老兄,saveasascii()?怎么用?哪里有这个函数啊?

xmdou 2002-01-25 01:20:23
...全文
133 4 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
liulee 2002-01-25
  • 打赏
  • 举报
回复

6.5? 很久没用了~~~是否有不太清楚了。

liulee 2002-01-25
  • 打赏
  • 举报
回复
Controls

PowerBuilder DataWindow DataWindow control, DataStore object

Syntax
PowerBuilder

long dwcontrol.SaveAsAscii ( string filename {, string separatorcharacter {,
string quotecharacter {, string lineending } } } )

Argument Description
dwcontrol A reference to a DataWindow control or DataStore
filename A string whose value is the name of the file in which to save the contents
separatorcharacter (optional) A string whose value is the character to be used to delimit values. If you omit separatorcharacter, the default is a tab character
quotecharacter (optional) A string whose value is the character to be used to wrap values. If you omit quotecharacter, the default is double quote
lineending
(optional) A string whose value is placed at the end of each line. If you omit lineending, the default is a carriage return plus a newline character (~r~n)
Return value

Returns 1 if it succeeds and -1 if an error occurs.

Usage

SaveAsAscii is a cross between the SaveAs (Text!) function and the SaveAs (HTMLTable!) function with additional arguments. It mirrors more closely what the user sees on the screen. Arguments allow the user to control how contents are separated and delimited in the ASCII file.
PowerBuilder assigns a cell for each DataWindow object (which can include computed columns and group totals). If a cell is empty, PowerBuilder puts the quotecharacter between the separatorcharacter in the output file.

liulee 2002-01-25
  • 打赏
  • 举报
回复

有的,查找帮助文件,是dw的一个方法。

xmdou 2002-01-25
  • 打赏
  • 举报
回复
使用的是pb5,没有这个SAVEASASCII这个函数,怎么办?还有其他方法吗?

400

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder 非技术版
社区管理员
  • 非技术版社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧