Category "object"

Accessing specific elements in Arraylist of Objects

Really confused on how to access just the age of a specific student where all the information of students have been stored in a textfile. I am reading the textf

/Main.java:17: error: non-static variable this cannot be referenced from a static context ^ 1 error [duplicate]

In this simple code can anyone explain me what's wrong ? public class Main { public class UserValidator { public void validateName(String

python rotating object disfunction

I have been working on my final project, where we are supposed to create a tank game in tkinter. I have done the movement, however i´ve been struggling wi

VBA: Creating a class property that is an array of dictionaries

In Microsoft Excel VBA I need to create a class that has two properties, "Name" and "Holdings". "Name" is just a string so the code for that is easy. But I ne

How to access an object inside another object in a map in react

react.js is complicated sometimes, I'm trying to access an information of a state, I have an array which has one object inside, and in this object, there is ano

Extracting embedded data from mongo object ( sub fields) in Talend

I'm working on Talend open studio for Big Data and connected to a MongoDB Database , however i can't extract complex subfields objects from my collections, some

Calling a function of a module by using its name (a string)

What is the best way to go call a function, given a string with the function's name in a Python program. For example, let's say that I have a module foo, and I

Add array of objects as elements to existing table td

I have an existing table. I have the td cells displayed as blocks intentionally. :) My goal is to add labels inside each of the td's by creating spans with a sp

javascript object Assignment an array

i have an object and with specific key a assign an array denemeobject['items'] = Object.values( JSON.parse(results.rows.item(index).BarcodeArr

Overwrite Object Property with Another Object

I am working in VBA, and I need to set the .Interior property of a Range object, to the value of its own .DisplayFormat.Interior. More generally, I want to pas

terraform combine 2 objects with 2 attributes for aws instance_ids

Following hashicorp doc to leverage for_each to provision multiple instance using local var map. I am unable to get the instance_ids into a single lists for out

Typescript, merge object types?

Is it possible to merge the props of two generic object types? I have a function similar to this: function foo<A extends object, B extends object>(a: A,

Why am I getting a nil value from a Ruby object's member, when it is not nil? [closed]

I want to get the value of a field (ScenarioID) in a Ruby ActivityChart object (chart). Displaying the whole chart shows the value I want: 16

ReactJS - Convert to Array Mapping

How can I convert this link to a array mapping, I already tried making a array object with name, path, icons, and label properties. But when I do that the cart

How can I write query for getting a json key and value from json api datasource in Grafana

I have a problem in my Grafana localhost that is the API's JSON value alone getting but not the key, I'm getting so is there a query to write like a key with va

Creating endless copies of objects

I have a macro which theoretically works perfectly but I think it is creating unnecessary processing and calculation requirements which then crashes the file. I

Pushing value to array that is the value of an object

I have the following structure: let mappings = { "1002": ["1000", "1003"], "2000": ["2001", "2002"] } and I want to add this piece of data const issueT

How to optimise a condition which checks for each object of an array of objects whether specific properties are not undefined?

I want code optimisation for an if-statement because I otherwise have to add more key-value pairs into this condition with &&. I have an array of object

How to populate an object inside of an object and call it whenever in C#

So I have an object (Location) This Location Object contains what is a Location I have also added another object that is a Venue on the last line. namespace En

DBF/FoxPro Connection with VBA

i want to make a connection with a DBF file through VBA, i have installed all the drivers but i get this error message every time i try to run it Object variab