这个问题该如何解决??

genius_ly 2004-12-24 03:01:48
window activesheet
WindowObject winobjecttype[]
integer i
activesheet = parentwindow.GetActiveSheet()
if isvalid(activesheet) then
for i = 1 to UpperBound(activesheet.control)
winobjecttype[i] = typeof(activesheet.control[i])
choose case winobjecttype[i]
case DataWindow!
如何获得某个特定的数据窗口?
end choose
next
end if

错误:1、Incompatible types in assignment:windowobject,object
2、Incompatible types in expression:object,windowobject
...全文
50 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
genius_ly 2004-12-25
  • 打赏
  • 举报
回复
问题已解决,谢谢大家!
genius_ly 2004-12-25
  • 打赏
  • 举报
回复
当前活动窗口中的数据窗口可能不止一个。
genius_ly 2004-12-25
  • 打赏
  • 举报
回复
我要实现的功能是对当前活动窗口进行排序,到了上面就无法进行了,请问我该怎么完成剩下的工作,请高手指点一下啊,急啊!!
hygougou 2004-12-24
  • 打赏
  • 举报
回复
classname()就可以了
不需要typeof
genius_ly 2004-12-24
  • 打赏
  • 举报
回复
window activesheet
Object object[]
string ls_class[]
integer i
activesheet = parentwindow.GetActiveSheet()
if isvalid(activesheet) then
for i = 1 to UpperBound(activesheet.control)
object[i] = typeof(activesheet.control[i])
ls_class[i] = activesheet.control[i].classname()
choose case object[i]
case datawindow!
如果某个特定的数据窗口排序????
end choose
next
end if
luotitan 2004-12-24
  • 打赏
  • 举报
回复
activesheet.control[i].Classname()来判断应该就可以。

740

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder 脚本语言
社区管理员
  • 脚本语言社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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