Questions tagged [items]
637 questions
-1
votes
4 answers
Replace words in a text with index of first occurrence
I have to create a program that can take a sentence such as
my arms are red, my legs are red and I am red
and output the sentence with the indices of the first occurrence of the word in the sentence, so the desired output of that sentence would…

Bobjit
- 13
- 3
-1
votes
1 answer
ListView trouble adding Items and SubItems
I want to add some strings to a ListView, but I dont know how long the string can be.
For example:
mystring := 'a'+|+'b'+|+ 'c'+|+ 'd'+|+ 'e'+|+ 'f'+|+ ....... '1000 of mystr';
After I explode the string, I have:
'a'
'b'
'c'
.
.
.
'1000ofmystr'
I…

Mario
- 1
- 1
-1
votes
1 answer
Make sorted array show results on webpage?
I have this fiddle that sorts items on my webpage. I can see it works by checking the console.log results. I just don't know how to make the results appear on the actual webpage -- the items sorted in order.
http://jsfiddle.net/AQFFq/21/
function…

Antonio Bandana
- 19
- 4
-1
votes
1 answer
Adding Items from Listbox to Listview in Seperate Forms VB.NET
Probably a really newbie question but I have developed some code for transferring items from a list box that is split into two parts and now want it to be transported into a list view in a separate form.
The code I have is this:
Any help you can…

Sam Sheppard
- 1
- 1
-1
votes
4 answers
VB Adding an item to listbox on a different form giving null reference exception
I am getting a an Null reference exception when trying to add an item to a listbox in a different form.
This is my error at run time.
An unhandled exception of type 'System.NullReferenceException'
occurred in ... Additional information: Object…

DigitalDulphin
- 55
- 3
- 12
-1
votes
2 answers
How to delete all checked name rows in DataTable?
I have an xml file loaded into my datagridview. The file that I load into datagridview looks like this:
-
name3
…

speedvees
- 117
- 1
- 11
-1
votes
1 answer
SAPUI5: What exactly is "items" in list aggregation?
While binding a list with a model and template, what is "items"? And what other options are available?

Rakeh Sahu
- 47
- 3
- 11
-1
votes
2 answers
How to avoid adding duplicate items in a Combobox in VB?
I have a Combobox on my form for the user to select items in a drop-down box, also they are allowed to enter their own input. I need the user to add items to a combobox without adding a duplicate item already displayed.
For example:
the combobox…

MattC
- 1
- 1
- 3
-1
votes
1 answer
if (height of all items > listview.height) then....
I'm programming an quiz app.
I have a TextView with a Question. The Textview height is changing depending on the question.
Under the textview is a listview with the answers.
I want to do something if the listview contains more items than i can…

Nico H
- 3
- 1
- 3
-1
votes
1 answer
Adding Items to text based java game
i am currently working on a text based game for class and cannot figure out how to add items to the game class. the game and moving between rooms has worked fine but this one part is confusing the hell out of me. here are the three classes that…

user3527058
- 23
- 1
- 5
-1
votes
2 answers
Size background list item dependent of item size
I have a unordered list as a menu.
All items have a background-color. What I want is that the width of the item does not fill the width of the list, and that the item (including the background-color) is aligned to the right in the list. I hope you…

B_s
- 3,026
- 5
- 32
- 51
-1
votes
1 answer
Set ComboBox text from Items only
I am trying to set a ComboBox's text conditionally - that is, if the text I am setting it to exists in the box's Items, then set it to that. Otherwise, leave it blank.
e.x.
ComboBox's Items:
Green
Blue
Pink
Red
For ComboBox1 I am trying to set to…

ikathegreat
- 2,311
- 9
- 49
- 80
-1
votes
1 answer
Array Item Referring to Another Sibling Element
Can i do this in PHP, or any others way around ? I want to refer to another element in the array.
$config = array(
'factory-code' => array(
'01', '02'
),
'commodity-filter' => array(
'factory' => array(
…

Azri Jamil
- 2,394
- 2
- 29
- 37
-1
votes
2 answers
Modify listBox items at runtime in c#
I wrote a code that add some items to a listbox at runtime, now i can't figure out how to acces to the properties of this items (specifically to the FontSize).
Here there is some code
for (int i = 0; i < list.Count; i++)
{
…

Daniele Kerberos
- 209
- 2
- 8
-2
votes
1 answer
Access to an item of an object in javascript
I am trying to get access to the items of an object, called verein. The corresponding code is:
export function TestForm(verein) {
console.log(verein);
console.log(verein.Verein_Name); // I try to get "Eschweiler Kanu Club e.V.
…

Chris Schog
- 1
- 1