不是参数不全的问题,好像是类型不匹配啊!!
源代码如下:
string win
if lb_select.selecteditem()=tablename then
win= tablewin
opensheet(win,w_main)
end if
tablename,tablewin为我所申明的游标从表中所取的表名和对应的窗口.
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.