Questions tagged as 'array'

1
answer

How to pass an array to a property?

I am trying to pass an array of Strings and two arrays from TAlignment to three properties (published). But I'm having the following error (which is the same for all three properties):    [dcc32 Error] uCad.pas (31): E2188 Published property...
asked by 07.02.2018 / 21:40
1
answer

Save information from a vector to each function call

I have a function in my javascript code, in this function is filled information into a variable that will be added in the position of a vector, I will try to illustrate with parts in pseudocode the example: funcao(){ a = scan; vetor.push...
asked by 15.02.2018 / 23:16
0
answers

Add items to the list and click the remove items button and add others in place

I have tried in many ways and so far without an exact success, for now what I want in the application is that I type the number in the input, and when I click enter, the numbers are aligned on the line, (preferably I wanted which is more dynamic...
asked by 02.02.2018 / 21:35
0
answers

JQuery 1.11.3 - Code does not work inside function loaded in $ (document) .ready only if inserted directly

EDITION # 1 I discovered that the code was not working because this snippet of JQuery code is inside a function like this: var minhaFuncao = function(){ var tbASP = []; var tbID = []; $(".portlet-body").find("div").each(funct...
asked by 10.02.2018 / 02:51
1
answer

Array returning error "Can not use function return value in write context in"

I am creating a array but it is returning me the error:    Fatal error: Can not use function return value in write context in C: \ xampp \ htdocs \ cadastro_insert.php on line 54: Where am I going wrong? $array = array(1, 2, 3, 4...
asked by 28.01.2018 / 00:18
1
answer

PHP is not returning the query data

Hello, I'm using the following code to return the regions: $query = 'SELECT * FROM Regiao'; $json = array(); $result = mysqli_query ($conn, $query); while($row = mysqli_fetch_array ($result)) { $regiao = array(...
asked by 20.01.2018 / 15:42
0
answers

get_where for PDO

I want to change get_where to mysql or PDO, but I do not know! Help ...! public function get_where($table = '', $where = NULL, $limit = NULL, $offset = NULL) { if ($table !== '') { $this->from($table); } if ($where...
asked by 18.01.2018 / 22:57
1
answer

How to pass values from a list in Ionic3

I have a simple json with id and name, with about 25 records, I have to pick only the records selected by the user to generate a new one screen according to the selected items, I'm doing the following: <ion-list> <ion-list-header>...
asked by 21.01.2018 / 17:14
1
answer

Difference between std :: list, std :: vector and std :: array

All containers used to guard data sequentially, but what are the main differences between them?     
asked by 04.11.2016 / 17:30
0
answers

Use Insert or Delete using SQLI PREPARE with array

In the old method I used this way too low to insert or delete a series of lines from an array. note that the variables are inside brackets {$ x} already using the PREPARE method msqli I can not make it work exemplo $query = mysql_query ("I...
asked by 23.01.2018 / 03:39