Questions tagged as 'objetos'

2
answers

Object of a class in another Java class

Hello, Is it possible to have the object of the class that instantiated in the instantiated class? Eg: (Incorrect syntax, just a guess) public class Classe2 { // Metodos e vetores da classe } Instance of Class2 in Class1...
asked by 16.06.2015 / 01:13
1
answer

Access attribute of a JS object using as key the key of another attribute

I'm trying to get the value inside a given object using the key of another object: Ex: I have the objects: var obj1 = { id:'gh73f'} var obj2 = { gh73f : 123, h39sg : 764, c9wer : 921 } I've tried: var valor = obj2[obj1.id]...
asked by 27.05.2014 / 14:22
1
answer

Convert Json to a Csharp Object [closed]

public IActionResult MoedaTurismo() { try { RestClient restClient = new RestClient(); RestRequest restRequest = new RestRequest(); restRequest.AddHeader("cache-control", "no-cache");...
asked by 10.12.2018 / 15:21
1
answer

Array of objects in php, objects being overwritten, why?

I've created a helper to organize the menus returned from the database so that it looks similar to a return of a native method of the framework I'm using. The code snippet that contains the error is this: $obj = new \stdClass; $menu = array()...
asked by 11.04.2018 / 22:22
1
answer

List with attributes that present difference between objects - Java

I need to compare two objects in JAVA so I can get a MAP with key and value of the attributes that have difference. I need this logic for a generic object, able to receive any type. Ex: OBJETO 1 - nome: João, email: [email protected]...
asked by 02.01.2018 / 20:07
1
answer

Strange values when generating array in a dynamic object in PHP

Follow this example code: class Object{ private $keys = []; private $values = []; public function criarArray(){ $obj=get_object_vars($this); foreach($obj as $key => $value): $this-&g...
asked by 19.09.2017 / 20:19
1
answer

How to drag some objects and forms in VBA / Excel and prevent the dragging of others?

I'm having trouble trying to control "dragging forms" and "dragging objects" in VBA / Excel. For example: I have the main form that I do not want to be moved, a second form is called from the main and can be moved, and I have certain objects...
asked by 08.12.2015 / 14:11
1
answer

Expando Object for Xml

I'm using Expando Object (C # VS 2013) to read a complex xml file. I need now to read this Expando Object and turn it back into an xml.     
asked by 24.04.2015 / 14:30
1
answer

How to construct Array of Objects

I'm trying to build an Array of Objects in JavaScript, but the result is not as expected. This is how I would like it to be: Butthat'showit'sstaying: This is the code I'm using: var wo = new Array(); while ( listItemEnumerator.moveNext() )...
asked by 30.07.2014 / 13:57
1
answer

Menu in the Tkinter Python module

Hello, I have a screen that was made in Tkinter and I have a menu with cascading submenus, what I need to do is show the different submenus information without having to create several other screens using functions. It's possible? If yes, how? H...
asked by 06.12.2018 / 02:29