VFP EXE第二次表单Flash和绝望点击In forget_password按钮后 [英] VFP EXE Second Form Flash And Desperate After click In forget_password button

查看:73
本文介绍了VFP EXE第二次表单Flash和绝望点击In forget_password按钮后的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的主要表格当我点击Opps忘记密码按钮忘记密码页面Flash和绝望我用程序调用我的主表单。

This Is my Main form Of Exe When I Click In Opps.Forget Password Button The Forget Password Page Flash And desperate I Call My Main Form With Program.

在程序我的代码是:

*****************************

*****************************

> SET STAT OFF

> SET DATE BRIT

> SET CENT ON

> SET SAFE OFF

> SET BELL OFF

> SET DELE ON

> SET EXCL OFF

>设置stat bar off



_screen.Visible = .F。 

>SET STAT OFF
>SET DATE BRIT
>SET CENT ON
>SET SAFE OFF
>SET BELL OFF
>SET DELE ON
>SET EXCL OFF
>set stat bar off

_screen.Visible = .F. 

DO FORM loginmaster.scx 

READ EVENTS

退出&bbsp

DO FORM loginmaster.scx 
READ EVENTS
QUIT 

---------------------------- ----------------------------

--------------------------------------------------------

忘记密码Button.Click事件是:

And Forget Password Button.Click Events is :

IF EMPTY(thisform.text1.Value)

IF EMPTY(thisform.text1.Value)

MESSAGEBOX("输入用户I" d",0 + 64)

thisform.text1.SetFocus 

返回 

ENDIF 





DO FORM passowrd_update与thisform.text1.Value联系 

MESSAGEBOX(" Enter User Id",0+64)
thisform.text1.SetFocus 
RETURN 
ENDIF 


DO FORM passowrd_update LINKED WITH thisform.text1.Value 

** ************************************************** ****

********************************************************

我的Forget_password Form.INIT代码是

And My Forget_password Form.INIT code is

******************************************* ************表格仍然闪烁绝望 

*******************************************************Form Is Still Flash And Desperate 

推荐答案

如果你想要滥用LINKED要将LINKED用于变量,您必须指定一个包含新表单引用的变量。如果没有链接到要传入的值,则指定的变量将成为表单引用,也就是表单本身。

You misuse LINKED, if you want to use LINKED to a variable you have to specify a variable holding the new form reference. you don't link with the values you want to pass in, the variable you specify will become the form reference aka the form itself.

DO FORM password_update WITH thisform.text1.value LINKED loForm

DO FORM password_update WITH thisform.text1.value LINKED loForm

但它不会将表单保留在变量范围内,因为当click事件代码结束时会立即释放loForm。我说你根本不需要LINKED条款,所以你可以简单地做

But it won't keep the form to a variable staying in scope, as loForm immediately is released, when the click event code ends. I say you don't need the LINKED clause at all, so you can simply do

DO FORM password_update WITH thisform.text1.value

DO FORM password_update WITH thisform.text1.value

您是否从password_update Load事件中删除了READ EVENTS?

Did you remove the READ EVENTS from the password_update Load event?

您是否将所有表单设置为顶级表单? (ShowWindow属性设置2)当你关闭屏幕时,没有任何形式不能显示ShowWindow = 0,因为这意味着在_screen和_screen中是不可见的。您可以拥有的是在顶级表单中设置为ShowWindow = 1 =的表单,它们
将显示在调用它们的顶级表单中,但也无法移动到其表单画布之外,顶级表单窗口区域剪辑子窗体,它们不能在桌面上自由移动。

Did you set all your forms to be top level forms? (ShowWindow property set 2) As you have screen off no form can't be ShowWindow=0, as that means in _screen and _screen is invisible. What you can have is forms set to ShowWindow=1 = in top level forms, they will appear inside the top level forms calling them, but will also not be able to be moved outside of their form canvas, top level forms window area clips child forms, they're not freely movable on the desktop.

具有"Forget_password"的内容是什么?表格,你打电话给password_update?

What has the "Forget_password" form to do with that, you're calling password_update?

和 请不要从Init()调用Show(),Show()只是发生,当你调用一个表单时,你只能在Init()之后从外部调用Show(),但只需要这样做,如果你调用一个带有DO FORM xyz NOSHOW的表格,它根本不需要显示
表格,默认显示。

And  please DON'T call Show() from the Init(), Show() simply happens, when you call a form, you would only call Show() from outside after Init(), but only need to do so, if you call a form with DO FORM xyz NOSHOW, it's not at all necessary to show a form, it's shown by default.

我知道你是最后的尝试,但简单的问题当将应用程序更改为不使用SCREEN时,您不能再使用ShowWindow = 0(在屏幕中),当您将它们放入不可见的_屏幕时,所有这些形式都将不可见。

I know you tried as last resort, but the simple probelm when changing an application to not use SCREEN is, you can't have ShowWindow=0 (In Screen) anymore, all these forms will get invisible as you put them into the invisible _screen.

再见,奥拉夫。


这篇关于VFP EXE第二次表单Flash和绝望点击In forget_password按钮后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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