PB中如何将choose case语句的参数,写进数据表,然后用select语句调用
3个回答
展开全部
不是很明白你到底想要干什么?
来个例子:
CHOOSE CASE Real(sle_real.Text)
CASE is < 10.99999
sle_message.Text = "Real Case < 10.99999"
CASE 11.00 to 48.99999
sle_message.Text = "Real Case 11 to 48.9999
CASE is > 48.9999
sle_message.Text = "Real Case > 48.9999"
CASE ELSE
sle_message.Text = "Cannot evaluate!"
END CHOOSE
你是想做什么?
来个例子:
CHOOSE CASE Real(sle_real.Text)
CASE is < 10.99999
sle_message.Text = "Real Case < 10.99999"
CASE 11.00 to 48.99999
sle_message.Text = "Real Case 11 to 48.9999
CASE is > 48.9999
sle_message.Text = "Real Case > 48.9999"
CASE ELSE
sle_message.Text = "Cannot evaluate!"
END CHOOSE
你是想做什么?
追问
choose case ls_obj
case 'd_inv_stockup'
is_flt[1] = 'stockup_no'
is_flt[2] = 'cst_name'
is_flt[3] = 'order_no'
ii_entry = 3
case 'd_rsobj_name'
is_flt[1] = 'whouse_rsobj_code'
is_flt[2] = 'whouse_rsobj_name'
ii_entry = 2
end choose
把case下面的参数写进sql表,然后用select函数调用这个表的参数,可以不?
追答
抱歉。。。理解能力太差,真心没明白你想干嘛
展开全部
表结构
参数ID,参数值
1 a
2 b
string ,a,b
select a into :a where id = 1 using sqlca;
select b into :b where id = 2 using sqlca;
choose case x
case a
...
case b
....
end choose
参数ID,参数值
1 a
2 b
string ,a,b
select a into :a where id = 1 using sqlca;
select b into :b where id = 2 using sqlca;
choose case x
case a
...
case b
....
end choose
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询