如何在程序中打开外部文件呢?例如本地硬盘中的文本文件。

moodersen 2003-05-18 08:29:04
我做了一个帮助文件(html ),需要添加到程序中,
在程序中打开,
但不知道怎么填代码。
求助!
...全文
88 9 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
kojiang 2003-05-19
  • 打赏
  • 举报
回复
1.在PB8中调用ShowHelp()函数
2.调用外部函数:Function Long HtmlHelp(Long hwnd, string lpHelpFile, Long WCommand, Long dwData) Library “hhctrl.ocx” Alias for “HtmlHelpA”
例如:HtmlHelp(handle(parentwindow),”xxx.chm”,0,0)
blackcorbie 2003-05-19
  • 打赏
  • 举报
回复
使用run()函数,看看帮助
dengxun78 2003-05-19
  • 打赏
  • 举报
回复
学习!
joss 2003-05-19
  • 打赏
  • 举报
回复
Description

Runs the specified application program.

Syntax

Run ( string {, windowstate } )

Argument Description
string A string whose value is the filename of the program you want to execute. Optionally, string can contain one or more parameters for the program
windowstate (optional) A value of the WindowState enumerated data type indicating the state in which you want to run the program:?Maximized! ?Maximized; enlarge the program window to its maximum size when it starts?Minimized! ?Minimized; shrink the program window to an icon when it starts?Normal! ?(Default) Run the program window in its normal size
Return value

Integer. Returns 1 if it is successful and -1 if an error occurs. If any argument's value is NULL, Run returns NULL.
xuebuctxy 2003-05-19
  • 打赏
  • 举报
回复
api shellexecute
还有很多其它方法
one_bird 2003-05-19
  • 打赏
  • 举报
回复
up
miqier 2003-05-19
  • 打赏
  • 举报
回复
Run("notepad.exe data.ini")
类似这个写法。
symbol68688 2003-05-18
  • 打赏
  • 举报
回复
fileopen
fileseek
fileread
filewrite试试看
xirumin 2003-05-18
  • 打赏
  • 举报
回复
run( 'help.chm' )

1,108

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder 相关问题讨论
社区管理员
  • 基础类社区
  • WorldMobile
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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