Questions tagged as 'object'

1
answer

Android: Error: void android.widget.TextView.setText (java.lang.CharSequence) 'on a null object reference

Good morning, please support me with this code that I try to run but it throws me error:    Error: void android.widget.TextView.setText (java.lang.CharSequence) '   on a null object reference The code is as follows: package bernascompan...
asked by 21.10.2017 / 13:11
1
answer

How to sort array formed by objects using .sort ()

I have a file that contains the object I want to manipulate. I think two for example. But when in the function of showing ArrayOrdenado () I apply the sort () to order it, being objects and not literals. He does not order me. My idea is that the...
asked by 15.11.2017 / 17:16
1
answer

Convert JavaScript Object Array

You would need to convert an object returned from an AJAX call to another object with different properties. The object in question has a structure similar to this: [ { campo1: "algun valor", campo2: { Id: 12345567, Nombr...
asked by 08.08.2018 / 22:59
3
answers

Overwrite Object

my question is this, I have an array with an object, and I do not know how to overwrite the value of the object I mean, array = [ usuario: 21312321, constraseña: "erica" },...] What would interest me would be to edit the...
asked by 22.06.2018 / 03:20
2
answers

How to fill a select dynamically, AngularJS?

I am filling out a selection of the departments of a company in the following way: $scope.selectize_a_data = { options: [ { id: 1,...
asked by 23.03.2017 / 06:44
2
answers

Error "no match operator []" when entering data in a map inside an object

I'm trying to save data on a map inside an object and I get this error in var [name] = val and in var [name]:    no match operator [] header #include <string> #include <map> using namespace std; class Calculator{ public:...
asked by 16.11.2016 / 07:57
2
answers

How to access javascript object

Hello, I have this javascript code: require("TimeSlice").guard(function() { (require("ServerJSDefine")).handleDefines([["cr:692209", ["cancelIdleCallbackBlue"], { "__rc": ["cancelIdleCallbackBlue", null] } , 3419]...
asked by 03.01.2019 / 20:56
1
answer

Access other properties of the same object

I have an object where I save data to build a view and I want to know if there is any way to access other properties of that object from another property in the same object I tried this but it does not work var obj = { tem...
asked by 20.09.2018 / 04:50
2
answers

Pass an array to objects in php

foreach ($video_filer['items'] as $video) { if (isset($video['id'])) { $date = new DateTime($video['snippet']['publishedAt']); $time = covtime($video['contentDetails']['duration']); //convert the date $video_da...
asked by 12.04.2018 / 06:09
2
answers

Create a program that allows you to see how many objects have been created in a class

This time I would like to know what would be the smartest and cleanest way to create a program that says how many objects have been created in a class . I have tried to do it in the following way: /*Crear un programa que le permita ver...
asked by 05.06.2016 / 23:42