注册 登录
编程论坛 PowerBuilder

求解PB函数错误

xjkcyb 发布于 2016-05-31 23:51, 5271 次点击
String ls_temp
Long   ll_brid

gf_center_window(This)
dw_main.SetTransObject(sqlca)
ls_temp = lower(Message.StringParm)
If ls_temp = 'yf' or ls_temp = 'yj' or ls_temp = 'ys' or ls_temp = 'zs' Then
    cb_kh.Visible = False
    cb_jk.Visible = False
    cb_tk.Visible = False
    cb_qd.Y       = 80
    cb_qx.Y          = 240
    dw_main.InsertRow(0)
    sle_brkh.SetFocus()
ELSE
    ll_brid = gs_exchange.LongParm[1]
    IF ll_brid > 0 Then
        SELECT BRKH INTO :is_brkh FROM MS_BRZH WHERE BRID = :ll_brid;
        SELECT MZHM INTO :is_mzhm FROM MS_BRDA WHERE BRID = :ll_brid;
        SLE_brkh.text=is_brkh
        dw_main.retrieve(is_mzhm)
        sle_mm.setFocus()
    ELSE
        dw_main.InsertRow(0)
        sle_brkh.SetFocus()
    End If
End If

错误提示:array boundary exceeded at line 16 in open event of object w_brkh_input
1 回复
#2
zouchen2016-06-20 14:09
gs_exchange.LongParm[1],数组溢出了
1