小问题(高手请进)

kxm 2004-11-22 10:56:42
PB中选择文件是那个函数
...全文
98 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
青锋-SS 2004-11-22
  • 打赏
  • 举报
回复
GetFolder ( title, directory )
青锋-SS 2004-11-22
  • 打赏
  • 举报
回复
Description

Displays a folder selection dialog box.

Syntax

GetFolder ( title, directory )

Argument Description
title String for a title that displays above a listbox containing a tree view for folder selection
directory String for the directory name passed by reference to the folder selection dialog box. The directory name is selected, and its subfolders, if any, are displayed in a dialog box tree view
Return value

Integer. Returns 1 if the function succeeds, 0 if the user selects cancel (or the dialog box is closed), -1 if an error occurs.

Usage

The directory selected by the user is returned in the same variable that is passed to the folder selection dialog box.
WorldMobile 2004-11-22
  • 打赏
  • 举报
回复
代码太长,这里粘不下
WorldMobile 2004-11-22
  • 打赏
  • 举报
回复
PB里没有,需要用到Shell32.dll里的API函数,你把Email给我,给你发过去,保证好用,给我发短消息
kxm 2004-11-22
  • 打赏
  • 举报
回复
不是这个哟
这个是选择文件
我要的是文件夹
sywen 2004-11-22
  • 打赏
  • 举报
回复
string filepath, filename[]
integer i, li_filenum, li_ret
li_ret = GetFileOpenName("Select File", filepath, filename[], &
"TXT", "Text Files (*.TXT),*.TXT," + "All Files (*.*), *.*")
//filename[]為選擇的文件數組
li_d_s 2004-11-22
  • 打赏
  • 举报
回复
搞啥啊,就是GetFileOpenName
qianfl 2004-11-22
  • 打赏
  • 举报
回复
写错了,好象是getopenfilename
qianfl 2004-11-22
  • 打赏
  • 举报
回复
getfileopenname
青锋-SS 2004-11-22
  • 打赏
  • 举报
回复
8也有.
Pegasuscc 2004-11-22
  • 打赏
  • 举报
回复
GETFOLDER只适用于PB9以上版本

1,077

社区成员

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

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