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

xmdou 2002-01-25 01:20:23
...全文
128 4 打赏 收藏 转发到动态 举报
写回复
用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这个函数,怎么办?还有其他方法吗?
其中《Visual c++ 技术内幕》和《深入浅出MFC》不可不买 中国人学不好VC的原因很简单:英语非常差,不会看英文版的MSDN/CD,大学里的教育全是垃圾,设备又差,许多学VC的家伙不懂MASM,连WINDOWS Message cycle system 都不了解,学什么学???不过不要紧!据我所知,全球使用C++的人不过30万,且多数是用BCB(用控件来写容易啊!!!???)要知道,根据MS的资料,它出的书最High class 的一类只不过卖出20万左右,(ps:I forgot bookname!!!)要想学好VC,先学好英文,再去 Codeguru.com之类的网站D/L source code !不要买国人自己编写的书(翻译的除外)最好是MS出的书,既然是用MS的工具,这是当然的,还要定期买MSDN/CD,MS的人开发人员每人一套!!!!要谈的太多了,一句话: 学好VC=英文好+基本功好+勤奋+聪明.少一不成的啊!!!! 我觉得初学者先不要看MFC,API,Windows编程之类的东西,最重要的是先弄懂什么是面向对象,什么是类,要是弄不懂类拿学起来就真的累了! 1.先找一些傻瓜书,一步一步教你,CLASSWIZED,单击,双击,右键...,...加入函数代码....编译,运行...(真正的傻瓜!) 2,分析代码,头文件,消息宏等,找来书慢慢研究吧.哦,这函数有这些参量.....哇,老兄,WINMAIN()是做什么的???????指针,类,继承,重栽,折构...... 3.书书....<>,95元,<<深入C++类库编程...>>,SAME图书,什么,105元... 清华,希望,机械,电子,什么出版社......

397

社区成员

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

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