Questions tagged as 'array'

2
answers

Initialize an array of associative arrays in PHP

I know that to declare an array is done in the following way: public $hijo = array(); // ó public $hijo[]; and for an associative array: public $hijo = array ( 'idPregunta' => '', 'codigo' => '', 'pregunta' => '' );...
asked by 20.02.2017 / 21:53
1
answer

Get the id of my ArrayList and put it in a TexView

I would like to get the id of the selected item in a Spinner ArrayAdapter adapter=new ArrayAdapter(c,android.R.layout.simple_list_item_1,spacecrafts); sp.setAdapter(adapter); sp.setOnItemSelectedListener(new AdapterView.OnIt...
asked by 04.12.2016 / 18:39
1
answer

Why are not the words stored in the arrays correctly stored?

The objective of this program is that given a sequence of characters entered verify if a word is a palindrome (word that is symmetric from right to left: qwewq qweewq) once verified that it is a palindrome to count the number of letters to see i...
asked by 22.12.2016 / 22:44
1
answer

JavaScript arrays object

I'm doing a sales system in php and mysql. The database operations I do with jquery ajax. I save header and detail of the sale separately, the detail is shown in a grid of jqwidgets from which I extract its datasource in as an object of arrays....
asked by 20.10.2016 / 17:43
1
answer

Blob inside json object

I have problems trying to store the data of a blob object inside a json object with javascript . This is what happens: I can recover the object of an image passed through a javascript file (FileReader): var blob = new Blob([readerImage...
asked by 11.08.2016 / 19:58
1
answer

How to use the values of an array obtained from a MySQL query to perform another MySQL query?

I am using CodeIgniter and I am trying to do it in the following way: $query = $this->db->query("SELECT Tabla1.id From Tabla1 INNER JOIN Tabla2 ON Tabla1.id = Tabla2.id");...
asked by 09.08.2016 / 15:21
2
answers

Generate an html menu with an array in php

I have this array: <?php $MENU = array(); $MENU["ESCRITORIO"] = array ( 'emparentar' => true, // emparentar == true ? muestra en el nivel superior menu : no lo muestra en el nivel superior 'abilitado' =&...
asked by 26.06.2016 / 13:48
1
answer

How to generate a parse, to read an xml and show it in a listview with soap

Good afternoon I'm in a development of an app that consumes webservices, the point is that he sends me a menu method that is an xml, I need to read it and show it as a menu in my app, I'm looking to show it in a listview, but not I know how t...
asked by 22.04.2016 / 00:22
1
answer

If string value in array then ... vba

I am working with a macro and what I want to do is compare the values of a column against the values in an array and if it finds it delete the entire row, what is not the instruction to find the value, my code: Dim i, c, last_row As Integer Di...
asked by 20.06.2016 / 23:17
1
answer

Problem Initializing array (TypeScript)

I am trying to copy properties of an object ( response.projects[i].name ) to an array. I have this: response=>{ if (response.projects){ this.projects=response.projects; console...
asked by 29.12.2018 / 19:51