473,498 Members | 1,873 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Compare in listbox

8 New Member
I have data in listbox1 as follows:
Id b1 b2 b3 b4 b5 b6 P1 P2 P3
1 1 3 5 9 8 7 - - -
2 1 5 4 8 6 9 1 - -
3 3 5 7 9 7 9 1 1 0
4 4 5 8 9 6 5 2 2 1
5 3 2 7 9 5 4 1 2 0
6 3 4 8 9 4 5 2 3 2

P1 is the rezult of equal values of b1,b2,b3,b4,b5,b6 when Id is 1and2,2and3,3and4,4and5, 5and6 while
P2 is the rezult of equal values of b1,b2,b3,b4,b5,b6 when Id is 1and3,2and4,3and5,4and6 while
P3is the rezult of equal values of b1,b2,b3,b4,b5,b6 when Id is 1and4,2and5,3and6
Id is increasing every week
Listbox2 need to return P1,P2,P3 etc.
How do i use code to get this
Feb 8 '07 #1
0 733

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

Similar topics

17
3084
by: amber | last post by:
Hello. Can someone tell me what I may be doing wrong here? I'm using the code (lboxRP is a listbox): Dim newRPindex As Integer newRPindex = Me.lboxRP.FindString(RP)...
3
3586
by: Paul T. Rong | last post by:
I have a listbox (of product names) control on my form. I want to pass the selected item (a product name) to a subform, and the product unitprice should apear automatically next to the product name...
1
1757
by: honeybee | last post by:
How to compare the SelectedValue in ListBox1 and the value of a specific item which presented by Index in ListBox2?
6
2856
by: Chris Leuty | last post by:
I am populating a multiselect Listbox from a dataset, with the content of the listbox filled by one table, and the selections determined from another table. So far, I have been keeping the dataset...
0
1034
by: Wee Bubba | last post by:
i have completed a Compare() function to help me sort the contents of a ListBox. I wanted to give the user of the class the ability to sort by EITHER ListItem.Text OR ListItem.Value. ALSO sometimes...
2
3701
by: http://www.visual-basic-data-mining.net/forum | last post by:
Hi... Say i have this string call "data" in Form1, this string contains number "5" value.... how do i pass this string to the Form2 and compare with the combo box items... The combo box ...
7
4517
by: Dave | last post by:
Hi all, After unsuccessfully trying to make my own dual listbox control out of arraylists, I decided to look for a 3rd party control. I've looked for over a week now and can't find anything but...
0
807
by: segue | last post by:
I have two listbox arrays 1 dimensional. They have the same items but in a different order. Depending on the order of the second newer listbox I'm constructing a querystring to sort the order...
3
2269
by: Ali Chambers | last post by:
Hi, I have created a listbox called "dtlist1" on my VB.NET form. I call a procedure as follows: Private Sub openfile(flname As String) dtlist1.Items.Clear() etc..
1
1626
by: Richard | last post by:
I'm writing code to compare two directories side-by-side, like FolderMatch or FolderSync. I've used ListBoxes in VB6, so have the idea about concatenating strings for list items, but have no...
0
7125
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
7004
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...
0
7208
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6890
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...
1
4915
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
4593
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3085
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1423
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 ...
0
292
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.