请教一个问题?

zzhouj zzhouj 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
我使用PB8.0开发一个登录界框时,本来预想是:
在单行编辑框sle_username内输入用户名,按回车,焦点移到单行编辑框sle_password上,方法是在sle_username的modified事件脚本中写入:

if keydown(13) then sle_password.setfocus()

再输入密码,再按回车,触发命令按钮cb_ok的clicked事件,方法是在sle_password的modified事件脚本中写入:

if keydown(13) then cb_ok.triggerevent(clicked!)


//cb_ok的clicked事件的脚本如下:
string username
string password

username=trim(sle_username.text)

SELECT CRM_User.Password
INTO :password
FROM CRM_User
WHERE CRM_User.Name=:username
USING SQLCA;

if SQLCA.SQLCode=0 then
if trim(password)=trim(sle_password.text) then
open(w_main)
close(parent)
else
//如果密码不正确的话,会执行到这里。
messagebox("客户关系管理","您的密码错误",Exclamation!,ok!)
sle_password.text=""
sle_password.setfocus()
//点了确定以后,光标在sle_password内,但是输入无效,
//点击该控件也无效,只有先点其它控件,再点它才能输入,请问这是为什么?
end if
else
messagebox("客户关系管理","您的用户名错误",Exclamation!,ok!)
sle_username.text=""
sle_password.text=""
sle_username.setfocus()
end if

//谢谢
...全文

相关推荐

华为虚拟交换机软件HW-RouteSim

一款免费的华为虚拟交换软件,对华为交换机感兴趣又没钱买的人很有帮助

gjican

软件虚拟交换机

he following document provides an outline of the Napatech NFV NIC with OVS Acceleration solution. Designed specifically for NFV use cases, the Napatech NFV NIC accelerates user-space OVS without the need for hypervisor bypass solutions, such as PCIe Direct Attach or Single Root Input Output Virtualization (SR-IOV), but ensures that OVS continues to operate in user-space with DPDK as the interface to Virtual Network Functions (VNFs). In this manner, the throughput performance of OVS can be accelerated up to 7x compared to standard Intel NIC-based solutions supporting OVS and DPDK, while at the same time enabling full VNF mobility. In addition, full theoretical 40G throughput performance can be achieved using less than 1 CPU core, which is an 8x saving compared to standard NICbased OVS

fuwenwen94

网络游戏-包括虚拟交换机的通信网络和充当这种虚拟交换机的终端.zip

网络游戏-包括虚拟交换机的通信网络和充当这种虚拟交换机的终端.zip

programyg

Cisco Nexus 1000V虚拟交换机产品简介

Cisco NexusTM 1000V虚拟接入交换机是一款智能软件交换机,适用于VMware ESX环境。Cisco Nexus 1000V在VMware ESX管理程序中运行,支持Cisco VN-Link服务器虚拟化技术。Cisco Nexus 1000V是与VMware密切合作的结晶,它与VMware虚拟基础设施完全集成,其中包括VMware Virtual Center、VMware SX和ESXi。您能使用Cisco Nexus 1000V来管理您的VM连接,确信能保持服务器虚拟化基础设施的完整性。

weixin_38586279

Hyper-v之可扩展虚拟交换机3.pdf

Hyper-v之可扩展虚拟交换机3.pdf

xhr131452007
评论 5
收藏 已收藏
分享
返回顶部
zzhouj
PowerBuilder 1,111 成员 66,454 内容