关于opensheet的问题

aqipig 2003-05-16 11:26:35
opensheet(win,w_main)
win 为我从数据库中取出的相应的表的名字,string类型
结果显示 reference argument type doesn't match function definition:opensheet
...全文
92 9 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
safenxiao 2003-05-16
  • 打赏
  • 举报
回复
string win
window ls_OpenWindow

if lb_select.selecteditem() = tablename then
win = tablewin
OpenSheet(ls_OpneWindow,win,w_main,7,Original!)
end if
你可以这样再试一下,看看怎么样!!
aqipig 2003-05-16
  • 打赏
  • 举报
回复
不是参数不全的问题,好像是类型不匹配啊!!
源代码如下:
string win
if lb_select.selecteditem()=tablename then
win= tablewin
opensheet(win,w_main)
end if
tablename,tablewin为我所申明的游标从表中所取的表名和对应的窗口.
tripman 2003-05-16
  • 打赏
  • 举报
回复
win 为我从数据库中取出的相应的表的名字?应该是子窗口的名字.
opensheet(w_child,w_main,0,layered!)
juwuyi 2003-05-16
  • 打赏
  • 举报
回复
window w_to_open
OpenSheet(w_to_open, win, w_main, 4, Layered!)
lightwindwind 2003-05-16
  • 打赏
  • 举报
回复
是因为你的参数没有写全.
opensheet(win,w_main,2,layered!)参数用法可参考帮助.
另,w_main主窗口最好是没有放置任何控件,否则不能显示win.
safenxiao 2003-05-16
  • 打赏
  • 举报
回复
OpenSheet ( sheetrefvar {, windowtype }, mdiframe {, position
{, arrangeopen } } )

Argument Description
sheetrefvar The name of any window variable that is not an MDI frame window. OpenSheet places a reference to the open sheet in sheetrefvar.
windowtype (optional) A string whose value is the datatype of the window you want to open. The datatype of windowtype must be the same or a descendant of sheetrefvar.
mdiframe The name of an MDI frame window.
position (optional) The number of the menu item (in the menu associated with the sheet) to which you want to append the names of the open sheets. Menu bar menu items are numbered from the left, beginning with 1. The default value of 0 lists the open sheets under the next-to-last menu item.
arrangeopen (optional) A value of the ArrangeOpen enumerated datatype specifying how you want the sheet arranged in the MDI frame in relation to other sheets when it is opened:?Cascaded! ?(Default) Cascade the sheet relative to other open sheets, so that its title bar is below the previously opened sheet.?Layered! ?Layer the sheet so that it fills the frame and covers previously opened sheets.?Original! ?Open the sheet in its original size and cascade it.
chenzhenyi 2003-05-16
  • 打赏
  • 举报
回复
还是参数不全的原因吧
tchatcha 2003-05-16
  • 打赏
  • 举报
回复
window w_to_open
OpenSheet(w_to_open, win, w_main, 4, Layered!)
aqipig 2003-05-16
  • 打赏
  • 举报
回复
可以用了
你能不能帮我解释一下?

1,108

社区成员

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

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