2,748
社区成员




Lparameters nKeyCode, nShiftAltCtrl
If nKeyCode=13 And !Empty(Thisform.text5.Value)
If !Used("book")
Use F:\图书管理系统\book.Dbf Alias book In 0
Endif
Select book
m.tsbh=Alltrim(Thisform.text5.Value)
Locate For Alltrim(图书编号)==m.tsbh
If Found()
Thisform.text6.Value=书名
Thisform.text7.Value=作者
Thisform.text8.Value=价格
Thisform.Refresh
Else
Messagebox("图书编号错误!",48,"警告")
Endif
Endif
Lparameters nKeyCode, nShiftAltCtrl
If nKeyCode=13 And !Empty(This.Value)
If !Used("book")
Use F:\图书管理系统\book.Dbf Alias book In 0
Endif
Select book
m.tsbh=Alltrim(This.Value)
Locate For Alltrim(图书编号)==m.tsbh
If Found()
Thisform.text6.Value=书名
Thisform.text7.Value=作者
Thisform.text8.Value=价格
Thisform.Refresh
Else
Messagebox("图书编号错误!",48,"警告")
Endif
Endif
If nKeyCode=13
use f:\图书管理系统\book.dbf alias book in 0
local c_tsbh
select book
c_tsbh=alltrim(thisform.text5.value)
Locate all for alltrim(图书编号)=c_tsbh
If Found()
thisform.text6.value=书名
thisform.text7.value=作者
thisform.text8.value=价格
else
messagebox("图书编号错误!",48,"警告")
endif
endif