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

xmdou 2002-01-25 01:20:23
...全文
104 点赞 收藏 4
写回复
4 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
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这个函数,怎么办?还有其他方法吗?
回复
发帖
非技术版
创建于2007-09-28

379

社区成员

PowerBuilder 非技术版
申请成为版主
帖子事件
创建了帖子
2002-01-25 01:20
社区公告
暂无公告