我写vf时,需要在表单中控件框点账号,查询姓名,不知道如何写, 20
下面是我写的,但不能查询出姓名,请高手解答,谢谢,很急!LPARAMETERSnKeyCode,nShiftAltCtrlifnkeycode==13gotopnJjrb...
下面是我写的,但不能查询出姓名,请高手解答,谢谢,很急!
LPARAMETERS nKeyCode, nShiftAltCtrl
if nkeycode == 13
go top
nJjrbh = alltrim(thisform.txtjjrbh.value)
loca for alltrim(jjrbh) = njjrbh
if.not.eof ( )
thisform.txtname.visible = .t.
thisform.refresh
thisform.label1.visible = .f.
thisform.tabstop = .t.
else
thisform.label1.visible = .t.
thisform.label1.caption = "查无此人"
thisform.txtname.visible = .f.
thisform.tabstop = .f.
endi
endi 展开
LPARAMETERS nKeyCode, nShiftAltCtrl
if nkeycode == 13
go top
nJjrbh = alltrim(thisform.txtjjrbh.value)
loca for alltrim(jjrbh) = njjrbh
if.not.eof ( )
thisform.txtname.visible = .t.
thisform.refresh
thisform.label1.visible = .f.
thisform.tabstop = .t.
else
thisform.label1.visible = .t.
thisform.label1.caption = "查无此人"
thisform.txtname.visible = .f.
thisform.tabstop = .f.
endi
endi 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询