473,503 Members | 3,721 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VB.net control arrays

28 New Member
hi,

iam doing a windows application.iam displaying values in the form at runtime.
my requirement is from PLC iam retrieving 40 values like 0 and 1 s

then iam displaying 1st 16 values into one textbox

next 16 values into one textbox

next 8 values into one textbox

for example 0100000000000001 ------ first textbox

and one more thing is values are displaying from right to left

ex : if 1st value is 1 then that is at starting at right


in my previous code iam displaying one value into one textbox.

now my requirement is like this

my previous code


Expand|Select|Wrap|Line Numbers
  1. Dim intVALUE_INDEX As Short
  2. Dim intINVISIBLE As Short
  3. Dim intCEMCON As Short
  4.  
  5.  
  6. intCEMCON = mfrmANALOG_VALUES.CURRENT_CEMCON
  7. For intVALUE_INDEX = 0 To (muiiobufCEMCON(intCEMCON).ANALOG_INPUTS - 1)
  8. If intVALUE_INDEX > 45 Then Exit For 
  9. mfrmANALOG_VALUES.Label1(intVALUE_INDEX).Text = CStr(intVALUE_INDEX)
  10. mfrmANALOG_VALUES.txtVALUE(intVALUE_INDEX).Text = CStr(muiiobufCEMCON(intCEMCON).GET_ANALOG_INPUT(intVALUE_INDEX + 1))
  11. Next intVALUE_INDEX
  12. For intINVISIBLE = muiiobufCEMCON(intCEMCON).ANALOG_INPUTS To 45
  13. mfrmANALOG_VALUES.Label1(intINVISIBLE).Visible = False
  14. mfrmANALOG_VALUES.txtVALUE(intINVISIBLE).Visible = False
  15. Next intINVISIBLE

so anyone help me with this code .please its very urgent.
Oct 1 '08 #1
2 1240
Frinavale
9,735 Recognized Expert Moderator Expert
I don't understand how your question pertains to VB.NET arrays?
How are you receiving your "Values" of forty 1's and 0's?
Are they listed in a String, in an Array?
Is your problem that you are displaying the values from right to left?
Are you able to display the data?
What have you tried so far to solve your problem?

-Frinny
Oct 1 '08 #2
joedeene
583 Contributor
ya, basically how are you getting the 40 numbers/integers returned to you ? or did you not accomplish this yet? because a simple string.split should give you the 3 sections(16,16,8), respectively. uhm, but an array, still would be easy to convert, please explain more what you are trying to do, the RTL is simple too, we just need some information on how you are receiving your data, or are u having trouble receiving exactly 40 integers ?

joedeene
Oct 1 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
18589
by: RBohannon | last post by:
Is it possible to create a control array on an unbound form? I would like to be able to loop through a series of unbound text boxes. Thanks.
13
1574
by: Bernie | last post by:
Sorry, but this ia another whine about VB.Net's lack of Control Arrays. I am new to VB.Net and I'm building an application that uses variable number of Label controls that are created at run...
2
1326
by: Merlin | last post by:
Hi I have a control that allows embeddable editors, so for example I can set a property of controlsEmbeddableEditor =me.TextBox1 on my form, no problem here - what I want to do is the same thing...
3
3836
by: B-Dog | last post by:
I'm capturing the checked radio button to XML file using the name of the radio button. I want to read my xml file to find which button was checked on close and the check the appropriate button...
3
1378
by: Robert | last post by:
How can I declare in VB .NET an array of labels for example and afterwards using a FOR structure load every component of the array? I've used this code but it doesn't work: dim x(10) as label...
20
2358
by: samean | last post by:
Hello, Could you explain me,In VB6 using control array,and how about VB.net. Thanks
8
2295
by: Greg | last post by:
In VB6 I made heavy use of control arrays I see they have been 'deprecated' in vb.Net, with a questionable explanation that they are no longer necessary which just addresses the event issue!...
9
5484
by: Michael D. Ober | last post by:
In VB 6, you can create control arrays for your option groups and scan with the following code dim opt as OptionButton for each opt in OptionGroup ' Do something next opt I know VB 2005...
4
2577
by: Arne Beruldsen | last post by:
I'm a recent convert to VB.net from VB6...and I can't believe they don't support control arrays. I have an app that uses a ton of Control Arrays...mostly labels and text boxes. I need some...
13
1664
by: Just_a_fan | last post by:
I am adding a bunch of controls with the code below. Problem 1: When program flow passes to "UpperChanged" when I click it, the control name is undefined. When I enter: If udUpperLim1.Value 1...
0
7192
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7064
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
6974
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7445
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4991
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3147
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1492
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
721
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
369
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.