473,394 Members | 1,887 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

storing many items in a list box to a single variable

Hi All

I have 4 como boxes and 4 text boxes
I gave all the 8 values and coded to make all the selected and entered values to a list box
Now I need all the values in a single list box to be stored in a single variable
Please help me out

Thank u
Apr 26 '12 #1
3 1464
Guido Geurs
767 Expert 512MB
Is it possible to attach your code in Bytes?
Apr 27 '12 #2
Thank you

I tried in a different way managed to complete the task
Now I have a different doubt
I placed 4 combo boxes and 4 text boxes
I selected some values fom combo boxes and entered 4 values in text boxes and saved it in a Label
Everything is ok
I have a command button for editing the values
If i click Edit all the values are cleared
But i couldnt see the list of items in the 4 combo boxes again. Its empty
I used Combo1.Clear

Simply to say, if i do any worng selection from the combo box, and if i click edit Edit button to clear it only thr text in the combobox should be cleared not the items in the list. so that i can make a correct selection

Thank u
Apr 29 '12 #3
Guido Geurs
767 Expert 512MB
To set the selection of a combobox to nothing=
Expand|Select|Wrap|Line Numbers
  1. Combobox1.text=""
IS it possible to attach your code in Bytes? (click on the button [Advanced] under this editor window)

"Combo1.clear" erases all the values in the combobox !!!

No need to erase the selection! just select again!
Apr 29 '12 #4

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

Similar topics

28
by: rajendra.stalekar | last post by:
Hi Folks!!! I have a string let's say "hi" and got to reverse it using just a single variable for swapping, how do I do it? Regards, Rajendra S.
0
by: gerry | last post by:
I want to populating an asp list box from a simple access lookup list (single column not a table.)I don't want to create tables just for lookups as the values will be descriptive only and will...
4
by: huzz | last post by:
I like to put all the values of an array into a single variable like: networkFiles = "val 1 val 2 val 3 val 4 val 5"; Here is what i am doing, but getting error message: Operator '+'...
4
by: nirjhar.oberoi | last post by:
Hi, This is my first post on this group! i am beginner lever C programmer. I am trying to add two numbers or multiply them using a single variable! Your are not allowed to use Unions or any...
5
by: Macca | last post by:
Hi, I have a number of objects i would like to store in a list like struture. They already have ID's associated with them so i would like to utilise these ids as accessors the list.. At the...
3
by: Seth Gecko | last post by:
Hi I am working with generic lists of various objects and a control dealing with these lists. For instance: A parent form holds: dim Walls as List(Of wall) dim Segments as List(Of segment) ...
6
by: psbasha | last post by:
Hi, I am assigning the list/dict values to another list/dict variable as shown below. List : List1 = List2 = List1
2
by: =?Utf-8?B?RHJEQkY=?= | last post by:
I understand that the Value put into a DataGridViewComboBoxCell has to be a member of the Items list or an exception is thrown. I also understand that you can override that exception by handling...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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...

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.