Questions tagged as 'objetos'

2
answers

Accessing objects of a class

class human(object): kind = 'humam' def __init__(self,name, sex, age): self.name = name self.sex = sex self.age = age def report(self): print(self.name) print(self.sex) print(self.age) c...
asked by 28.10.2017 / 03:57
1
answer

Array has values, but its length is zero [closed]

I need to iterate over this array , however, although it is not empty, length of it returns 0 as you can see, does anyone know the reason? Thescenarioisasfollows:I'mgettingJSONdatafromanAPIanditeratingovertheobjectstoputthevalue...
asked by 30.09.2017 / 10:46
0
answers

For Each In .Shapes GROUP control for excel [closed]

wave I would like to make a For Each In. Shapes "those shapes" but they grouped I managed to assemble with them ungrouped but grouped it looks like the procedures are different What I got so far, is a little incomplete because it messed up the...
asked by 17.08.2017 / 04:41
1
answer

Return objects added from an array in one

Next, I'm a designer and I'm learning javascript slowly. One of the things that I have the most difficulties, are objects and arrays, so I'm focusing on it now. I have an array with 4 objects as the following code. var players = [{ name: "Ba...
asked by 01.04.2017 / 20:29
0
answers

How to use PHP Objects and Transaction Control in MySQL?

I have a database with some tables, and I've created a class for handling each table in the bank, one example is one class for requests and another for Orders . Each class handles your table, and when a class needs to write data to another tabl...
asked by 04.10.2016 / 16:31
1
answer

About Object and Extensions [closed]

I'm now starting in Javascript I'm learning through websites. I went to an excellent site ( link ) and so far everything was fine. Except that getting to the part of (Objects) the code does not give at all. The point is that the code does not st...
asked by 29.07.2015 / 18:48
3
answers

How to return an object using the object name as a function parameter?

Good evening! Can someone tell me how I can return the object using an invocation of type: book (book1); function book(bookName) { var obj = { livro1: { quantidadePaginas: 300, autor: "Jorge",...
asked by 01.11.2017 / 02:53
2
answers

Add a value to a JSON object

How can I add a string of values to a JSON object? For example: var a = 12; var b = 3; var obj = { c: 11, d:22 } console.log(obj); How can I apply to and b within my obj variable to become part of this JSON object?     
asked by 04.05.2016 / 20:45
1
answer

How do I know if there is content in an object of the class?

I need to know if I have content in a class or if it is empty, how do I get this information? Classe usuario = new Classe(); I wanted to be able to see if there is content in this class of my usuario . In Delphi there is something lik...
asked by 16.07.2018 / 22:16
2
answers

Use property of an object when declaring it in javascript

Personal I'm starting in javascript and I have many questions related to objects. One of them is this: Let's suppose I create an object. Here I have a list and I want to store it inside an object and a function of this object is used to chang...
asked by 11.05.2017 / 15:51