Questions tagged as 'array'

1
answer

Resize Multidimensional / Associative Array from a ResultSet

I'm trying to feed a multidimensional and associative array from a ResultSet, however it accuses the following error: Microsoft VBScript compilation error '800a0401' Expected end of statement /beta/comercialBannersRelatorioGerado.asp, line 5...
asked by 12.11.2014 / 18:09
1
answer

Ignore data type checking when using $ .inArray

I'm having the following problem with jQuery : When I try to check an existing value inside an array, with the $.inArray method, it is returning an unexpected result. Example: I want to check if 1232 exists within Array...
asked by 09.02.2015 / 18:38
1
answer

Store variable within a While

I have a simple question but it's breaking my head: I have a form where there are several checkboxes, the value of the checkbox is an id number, I would like to create something that when the user selects a certain number of checks the system m...
asked by 13.01.2015 / 21:41
1
answer

Clear json array after Ajax coming from a PHP file

Does anyone know how to clean a json array via ajax coming from a php file? I have a setInterval that checks every 2 seconds and receives data from a php file (this data is brought as array json, I can see in the chrome or firefox XHR) but inste...
asked by 20.03.2015 / 15:10
1
answer

Comparable with Arrays.Sort

I'm having difficulty using the Comparable interface. In the TrabalhoGA class I should call the ordenaPorPontos method of the temporada2013 class that performs the comparison of the% points of this class, I need to us...
asked by 02.10.2014 / 01:31
1
answer

Mounting array with checkbox

I would like to mature the idea below of sending a JavaScript variable to asp and with the choices in array , I am only able to send a choice at the moment: <!DOCTYPE html> <html> <head> <script> function getEleme...
asked by 27.10.2014 / 22:03
1
answer

Help: Valuing a char array of a struct within an if

I'm trying to set the value of a char vector of a struct inside an if, but without success ... A struct itself: struct ficha { char nome[31], classificacao[31], telefone[21]; float altura, peso, imc; }paciente1, pa...
asked by 15.07.2014 / 23:36
2
answers

How do I make the return of a query (PDO) already bring me an array ready?

I that I have: Periodo | Cliente _________________________ jan2014 | Cliente A jan2014 | Cliente B I want what: array( 'jan2014' => array( 0 => 'Cliente A', 1 => 'Cliente B', ) )     
asked by 10.03.2014 / 19:54
2
answers

Problems inserting values into vector pointer

I'm having trouble trying to perform a programming exercise that was passed to me, where you are asked to "create a vector-type pointer variable with 20 character-type occurrences". #include <stdio.h> #include <conio.h> int main()...
asked by 27.11.2014 / 04:20
0
answers

Searching and selecting clients with the search bar - Ionic

I type a client in the search bar, it traverses the vector, brings its clients in a list, so far so good. The problem: When I have two clients with the same initial characters , it brings to the search field (ALWAYS) the last element of the...
asked by 15.10.2018 / 20:34