关于opensheet的问题

aqipig 2003-05-16 11:26:35
opensheet(win,w_main)
win 为我从数据库中取出的相应的表的名字,string类型
结果显示 reference argument type doesn't match function definition:opensheet
...全文
35 点赞 收藏 9
写回复
9 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
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
可以用了
你能不能帮我解释一下?
回复
相关推荐
发帖
PowerBuilder
创建于2007-09-28

869

社区成员

PowerBuilder 相关问题讨论
申请成为版主
帖子事件
创建了帖子
2003-05-16 11:26
社区公告
暂无公告