Questions tagged [items]

637 questions
-2
votes
1 answer

Javascript Select vector with the greatest number of items

I have 4 arrays: Note: Length of array length is different in any session var Class_A = [8, 11, 3, 9, 11, 16, 16]; var Class_B = [2, 6, 12, 13, 20, 22, 33, 40, 50, 66, 77]; // Greatest length with 11 items, var Class_C = [10, 14, 19]; var Class_D =…
-2
votes
1 answer

Is there a vb.net code to fill a row in a database with text other than text mentioned in a CheckedListBox

I'm developing a correspondence app. using VB.NET. So, I have a CheckedListBox that fills in with items once its parent form shows up, and its item collection is derived from a specific column within a table in a database via an SQL code. So,…
Fahad J.
  • 1
  • 1
-2
votes
1 answer

My list is giving the same answer

Could someone help me with this? No matter what number I put I get the same answer/output items = {'1': '2', '3': '4', '5': 'a'} choice = input("Select a number: ") if choice in items: the_choice = items[choice] print('you go right') else: …
james548
  • 1
  • 1
-2
votes
1 answer

how much items should be shown in spinners and others by scrolling?

I have a spinner in my android app which contains 15 items and I want to set the default shown items in it (other items will be shown by scrolling ). how should I set it ?
Alexander
  • 1
  • 1
-2
votes
1 answer

Python: dict.items() is printing more rows (rows that are not in actual file)

I have multiple text files in a folder that I'm trying to read and write into a dictionary. The files look like this: file1.txt: chr17 1 1 T C C 5 chr13 2 2 A A G 4 file2.txt: chr17 1 1 T C C 5 chr17 2 2 A …
pam
  • 1,175
  • 5
  • 15
  • 28
-2
votes
3 answers

Filter JSON items in NSMutableArray

I have a little problem, I have a json feed and I would like to display in an array that items whose Country = France How to do ? Thank you (Objective-C) My JSON : { "menu": "Fichier", "commandes": [ { "country":…
victor bill
  • 209
  • 2
  • 15
-2
votes
1 answer

Is it possible to group different item with the same category in jquery

I have this situation, when showing diferent models that are duplicated. My question is if there is a solution in jquery that if I had Iphone 4 white and Iphone 4 black, this can be merge into other product Iphone 4, and when click this one, it…
amibumping
  • 245
  • 1
  • 2
  • 13
-2
votes
1 answer

Javascript or HTML - Select two items, show the sum

Found the answer! At the bottom of the page. I would like to select two items and produce the sum of both on a website. For instance, let's say each number is a book : Row A = 1 (U$10), 2 (U$20), 3 (U$30), 4 (U$40). Row B = 5 (U$50), 6 (U$60), 7…
-2
votes
1 answer

Random in a Int[]

I want to the player receive a random item in the Int[] public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) { Player player = (Player) sender; if(commandLabel.equalsIgnoreCase("surprise")){ Random…
-2
votes
1 answer

Taking all items from listview to textview on click

im a beginner in android/java programming and im trying to retrieve the element from a listview and put them in a textview.I know you can set text to a textview using settext but I dont know how to retrieve element from my listview(they are all…
Phil_oneil
  • 267
  • 3
  • 11
-2
votes
2 answers

How to show a list of items with 2 fields?

I'm developing my first app and I want to show a grid in which there is a list of entries. I get those entries through queries on local SQLite database so this it is a dynamic list. Every item of this list should have 2 field: a string and a…
smartmouse
  • 13,912
  • 34
  • 100
  • 166
-2
votes
1 answer

Manually add a DataGridViewRow WITH a pre-populated combo box: DataGridViewComboBoxColumn

HELP! Been trying hard to manually add a DataGridViewRow row WITH a pre-populated combo box... a DataGridViewComboBoxColumn to be exact. I just want to have it automatically populate with strings, shipping options "Ground", "Air", etc. I have…
actinade
  • 55
  • 8
-3
votes
1 answer

a discord.js inventory system that shows full list

I've been trying to figure out how to make an inventory system that shows the whole list of that categories items + a users quantity of that item, for example: if someone does >inv fruits, it would show: apple - 0 banana - 1 orange - 3 if they did…
-3
votes
2 answers

Ruby - Divide Items from one array by the items of a different array, one by one, and throw a new array

I have my two arrays x = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18] y = [2, 4] and I want to find the items from my array x that are divisible by the items of my array y, and create a new array with result numbers. In this…
1 2 3
42
43