最初是空标签 [英] Initially Empty Labels
问题描述
在我的vb2005项目中,我有一个x by x数组作为double类型。为了可视化其中的内容,我将每个索引连接到标签。当我运行程序时,初始数组为空,因此每个标签都包含零。
我遇到的问题是,我不想最初看到所有的零(在运行时)。如果我在数组中放入零(或其他数字),我只想看标签。有没有一种简单的方法可以做到这一点?
Cindy
Hi,
In my vb2005-project I have a x by x array as type double. To visualise what''s in it, I connected each index to a label. When I run the programm, the initial array is empty, so each label contains a zero.
The problem I have is, I don''t wanna see all the zero''s initially (on runtime). I only want to see the labels if I put a zero (or another number) in the array. Is there an easy way to do this?
Cindy
推荐答案
(警告:我是VB6开发人员所以可能谈论垃圾...)
你能用将每个索引连接到标签来解释你的意思吗?或者这在VB2005中是否太明显无法解释?
(Caveat: I''m a VB6 developer so may be talking garbage...)
Can you explain what you mean by "connecting each index to a label"? Or is this too obvious in VB2005 to explain?
(警告:我是VB6开发人员所以可能会说垃圾...... )
你能用将每个索引连接到标签来解释你的意思吗?或者这在VB2005中是否太明显了解释?
(Caveat: I''m a VB6 developer so may be talking garbage...)
Can you explain what you mean by "connecting each index to a label"? Or is this too obvious in VB2005 to explain?
是的,它在vb2005中非常明显:)。假设我有一个包含4乘4元素的数组,总共有16个元素。现在,在我的设计表格中,我放了16个标签。这些标签中的每一个都连接到数组的索引:
Hi,
Yes, it''s very obvious in vb2005 :). Let''s say I have an array with 4 by 4 elements, which gives a total of 16 elements. Now, on my design-form I put 16 labels. Each of these labels is connected to an index of the array:
取决于法律范围你想要的数字,只需将数字放在所述范围之外,并检查不是那个数字。 EX:
您的合法范围为零或以上:
Depending on the legal range of numbers you want, just put a number outside said range and check for not that number. EX:
Your legal range is zero or above:
这篇关于最初是空标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!