1.滚动条问题;2.语句错在哪里

zyqherozyqhero 2003-04-11 08:16:55
1.如何通过程序使滚动条自动移动到窗口控件的最左端和最上端
2.下面的语句哪里有错:
我事先声明的API函数CopyFileA。可是在编译时系统总是说下面的语句有错。
boolean rtn
rtn=CopyFileA("f:\dfgl\dfgl.db","c:\dfgl\bak\dfgl.db",true)
...全文
52 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
andyzq 2003-04-11
  • 打赏
  • 举报
回复
f:\dfgl\dfgl.db 这个文件存在吗?
shahand 2003-04-11
  • 打赏
  • 举报
回复
1:
The Position property for scrollbar controls is an integer. It should be used in conjunction with MaxPosition and Min Position. For example, if the scrollbar's minimum is 0 and maximum is 100, this statement positions the scroll box 80 percent of the way toward the bottom.

vsb_1.Position = 80
shahand 2003-04-11
  • 打赏
  • 举报
回复
如果你是这样申明的:
FUNCTION boolean CopyFileA(ref string lpExistingFileName,ref string lpNewFileName,boolean bFailIfExists) LIBRARY "kernel32.dll"

那么函数中的前两个参数必须使用变量,不能使用常量
比如
string ls_from ="f:\dfgl\dfgl.db" ,ls_to = "c:\dfgl\bak\dfgl.db"

1,076

社区成员

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

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