vf表单设计程序 哪里错了。。?

来源:百度知道 编辑:UC知道 时间:2024/05/14 11:54:26
A= thisform.text1.value
select 姓名 from student where 学号="A" into array ab
thisform.text5.value= ab

提示说 找不到 变量 ab

这是我的一个实例:(商业软件一个小查询)
A= thisform.text1.value
select zlmc from zydwmc where zldm= A into array ab
thisform.text2.value= ab(1)
-------------------------------
你的问题可能出现在:1 ="A" 改为=A 2 = ab 改为 =ab(1)

改成 :
A= thisform.text1.value
select 姓名 from student where 学号=A into array ab
thisform.text5.value= ab(1)
就应该可以,ab是数组 ab(1)才是变量,ab=>thisform.text5.value肯定不对