模块级变量不保持其值 [英] Module level variable not holding its value

查看:50
本文介绍了模块级变量不保持其值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一种奇怪的情况,我无法弄清楚发生了什么。在Form1上,我有一个按钮,使用以下代码打开另一个表单:

I''ve got a weird situation that I can''t figure out what is happening. On Form1, I have a button to open another form using the following code:

展开 | 选择 | Wrap | 行号

推荐答案

您是如何声明的: " lngCustomerID"
how did you declare: "lngCustomerID"


展开 | 选择 | Wrap | 行号


这应该位于表单顶部的代码模块
This should be at the top of your form''s code module
展开 | 选择 | 换行 | 行号


这篇关于模块级变量不保持其值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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