|
-
May 11th, 2012, 08:01 PM
#1
how to save the checkbox settings?
Hi guys,
Can you please help me with the checkboxes in the listview. I want to save the settings of the checkbox when I tick and untick them in the listview, e.g tick and untick the checkboxes and save the subitems text in the label text.
So I can read the settings from the label and split it to read each text.
Do you know how i can save the checkbox settings before I can read the subitems text when I click on the button?
Any advice would be much appreicate it.
Thanks,
Mark
-
May 11th, 2012, 08:30 PM
#2
Re: how to save the checkbox settings?
Sorry but I can not make heads or tails of what you are asking here.
Always use [code][/code] tags when posting code.
-
May 12th, 2012, 09:08 AM
#3
Re: how to save the checkbox settings?
Ok, what i am trying to do is to click on the checkboxes in the listview to tick and untick to save the settings and when i click on the button, I want the messagebox to display and tell me what listview items that i have tick and untick on. Hope you get this?
Do you know how to do this?
-
May 12th, 2012, 12:55 PM
#4
Re: how to save the checkbox settings?
So are you saying that you want to every time you tick or untick? So if you tick/untick/tick/untick you get 4 messages, 1 after eack click? That would be very annoying.
What do you mean by settings?
You really need to try and be clear when you are asking for help. Don't be afraid to write more than one or two sentences, give us enough info so we can understand what you want to do.
Always use [code][/code] tags when posting code.
-
May 13th, 2012, 03:21 PM
#5
Re: how to save the checkbox settings?
No, I only want the messagebox to display in each a time when I tick and untick on the checkboxes. I need to know which strings i have tick and untick on the checkboxes, so I can send to my php server.
If the checkboxes have already tick and untick, i want to ignore it and i only want to find the checkboxes that I have tick and untick.
I know that it will be difficult, but I guess that it will be the only way to store the strings in the label, so I would get the messagebox to display for each strings in the label while being split.
I have stored the strings in the label something like this:
Code:
my strings,mystrings 2,
Do you know how to split the strings next to the comma and get the messagebox to display for each string?
Like this:
Messagebox will display for each string:
Do you know how to do this?
-
May 13th, 2012, 05:15 PM
#6
Re: how to save the checkbox settings?
It would really help if you had clearly explained what you need. I assume that you are using something in a listview that you are referring to as settings but that is just a guess as your posts are unclear. Same with tick and untick. I assume you mean tick or untick rather than tick and untick but again it is not clear.
As for splitting the string that is simple use the Split() function. This will give you an array which you can easily loop through and display each element or whatever you want.
Always use [code][/code] tags when posting code.
-
May 14th, 2012, 09:14 PM
#7
Re: how to save the checkbox settings?
Okay, what I am trying to do is to select on the checkboxes to save the subitems text to let the program to know which items I have select on to save the index and display the messagebox with the items that I select without display all items through on the loop.
Do you know how I can save the subitems text when I select on the checkboxes and display the messagebox with the items that I select on when I click on a button?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|