Questions tagged as 'object'

2
answers

How to fill an array with respect to the values of another javascript array?

I am doing the genetic algorithm of a flock of sheep. It turns out that from this exercise I generated a population that would be an array of objects. Population example, of course for this problem you must generate more objects, but this use...
asked by 10.05.2018 / 00:34
1
answer

XML deserialization to objects C # The specified type is not recognized:

I'm trying to perform the deserialization of an xml to an object. The problem is that when I try to perform this operation I get the following error: {"The specified type is not recognized: name = 'ProductTransfer', namespace = ' link ', in...
asked by 30.06.2018 / 00:22
2
answers

Object Arrangement in Java

Good morning, it turns out that I must make an arrangement that can store both data as int, String, boolean and in turn any other type of object that is entered. I was using the ArrayList since it gives the option to save whatever it is in each...
asked by 07.02.2018 / 14:58
1
answer

Is it necessary to initialize an object in angular?

I have an external class export class as template for an object. export class Car{ name: Boolean; other: { prize: String; brand: String; }; doors: { number: String, size: String, }; } I try to access it from...
asked by 16.01.2018 / 13:42
1
answer

in_array PHP Warning

I need to verify if at the time of inserting a new client, register.php, there is the email that has been inserted in the form or not. If there is an alert message, send the focus to the input email field and do not send data. If it...
asked by 18.12.2017 / 23:20
1
answer

How can I change the text of a TextBox with the space bar? (VFP)

I have a question that I hope you can help me with. I'm doing a basic program with VFP 9.0 and I want to change the text of a TextBox with the spacebar , I mean: In a job I had we used a system that by pressing the space bar in a fiel...
asked by 04.09.2018 / 21:57
1
answer

Access key within json object

I have the following query By means of a ajax I get this json {"messageList":{"USER_DATA":{"nombre":"pablo","apellido":"santamarina"},"SESION_DATA":{"isUserLogin":"true"}}} What I want to do now is to go through the objects wi...
asked by 23.12.2016 / 16:20
1
answer

When copying an object are they subject to the same changes?

I am using a tool that serves to create user surveys. The tool generates a page (the survey) with a JS object in which there is information about the user's interaction with the questions and some utilities (methods) and that she herself uses to...
asked by 23.08.2018 / 13:58
1
answer

go through an object and send the data to firebase

So far I have the following code, I get an object and with a for what I'm going through: for (var i = 0; i < data.length; i++) { console.log("datos completos -> " + data[i].id_expediente); //acceder a mis datos de fi...
asked by 26.06.2018 / 17:06
2
answers

save data to an object Using FOR

I have this for, the idea is to save the data in the object: let data_array = {}; for (var i = 0; i < data.length; i++) { //console.log("datos completos -> " + data[i].id_expediente); data_array = {...
asked by 28.06.2018 / 19:33