将更改Lightswitch 2011的查询 [英] Query that will change Lightswitch 2011

查看:69
本文介绍了将更改Lightswitch 2011的查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Lightswitch 2011的新手.

我要做的就是运行一个查询,如果返回结果则显示文本消息,如果为false则显示另一条文本消息.我可以这样做,但是当查询不变时,该消息不会出现.

我知道这是因为我使用了下面的Procedure SelectionChanged.我还能用什么呢?

I am new to Lightswitch 2011.

All I want to do is run a query that will show text message if results are returned and another text message if false.. I can do this , but when the query does not change, the message does not appear.

I know it is because I used the Procedure SelectionChanged below. What else could I possibly used.

Private Sub Query1_SelectionChanged()
            Dim TotalCount As Integer

            TotalCount = Me.Query1.Count

            If TotalCount = 1 Then
                Me.ShowMessageBox("This is a Bostik Part. Please check batch card again")


            End If

            If TotalCount = 0 Then
                Me.ShowMessageBox("Please Press Enter to continue")
            End If


        End Sub



期待收到您的来信.



Look forward to hearing from you

推荐答案

您应该获取TextChange事件并检查e.Key = Enter.
You should get the TextChange event and check for e.Key = Enter.


这篇关于将更改Lightswitch 2011的查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆