Powerbuilder Power Builder-数据窗口需要字符串
我的datawindow搜索函数“Expecting STRING expression”中出现此错误,任何人都可以帮助我解决此问题。下面是我的代码 在我的标题列表中,ue_search()返回(无)事件Powerbuilder Power Builder-数据窗口需要字符串,powerbuilder,datawindow,Powerbuilder,Datawindow,我的datawindow搜索函数“Expecting STRING expression”中出现此错误,任何人都可以帮助我解决此问题。下面是我的代码 在我的标题列表中,ue_search()返回(无)事件 string s_criteria openwithparm(w_fm210search, parent) s_criteria = Message.StringParm This.TriggerEvent("ue_findrec", 0, s_criteria) string Pas
string s_criteria
openwithparm(w_fm210search, parent)
s_criteria = Message.StringParm
This.TriggerEvent("ue_findrec", 0, s_criteria)
string PassedString
long l_row, l_count
PassedString = String(Message.LongParm, "address")
if trim(PassedString) <> "NULL" then
// find row
l_count = This.RowCount()
l_row = This.Find(PassedString, 1, l_count)
if l_row = 0 then
gucc_function.uof_message(032)
l_row = 1
end if
If l_row >= 0 then
This.ScrollToRow(l_row)
This.SelectRow(0, FALSE)
This.SelectRow(l_row, TRUE)
end if
end if
在我的标题列表中,ue_findrec()返回(无)事件
string s_criteria
openwithparm(w_fm210search, parent)
s_criteria = Message.StringParm
This.TriggerEvent("ue_findrec", 0, s_criteria)
string PassedString
long l_row, l_count
PassedString = String(Message.LongParm, "address")
if trim(PassedString) <> "NULL" then
// find row
l_count = This.RowCount()
l_row = This.Find(PassedString, 1, l_count)
if l_row = 0 then
gucc_function.uof_message(032)
l_row = 1
end if
If l_row >= 0 then
This.ScrollToRow(l_row)
This.SelectRow(0, FALSE)
This.SelectRow(l_row, TRUE)
end if
end if
string PassedString
长l_行,l_计数
PassedString=String(Message.LongParm,“地址”)
如果trim(PassedString)“NULL”,则
//查找行
l_count=This.RowCount()
l_行=This.Find(PassedString,1,l_计数)
如果l_行=0,则
gucc_函数。uof_消息(032)
l_行=1
如果结束
如果l_行>=0,则
此.ScrollToRow(左行)
此选项。选择行(0,FALSE)
This.SelectRow(l\u row,TRUE)
如果结束
如果结束
我建议检查代码中的这一行:
PassedString = String(Message.LongParm, "address")
通常,当您使用参数触发事件时,这些参数就是您在事件中使用的参数。它们由您在创建事件时提供给它们的名称引用(或者PB分配给它们的名称,如果它们不是用户定义的)
我怀疑您的消息对象包含不正确或空值