Questions tagged [object-properties]
117 questions
0
votes
0 answers
Class properties become undefined
I am learning Angular, and as a first project I'm trying to make a web page to play chess.
For this I've made two components, with their respective classes: SquareComponent and BoardComponent.
The class SquareComponent has these properties:
export…
0
votes
1 answer
Accessing object properties outside of class or object using dot notation?
So this may be simple and I'm probably understanding this wrong..
I have created both classes and functions in my code that have the parameters of x, y and z as such..
class Example {
constructor(x, y, z) {
this.x = x;
this.y = y;
…

Hakaewt
- 49
- 1
- 7
0
votes
1 answer
Pasting into Excel ActiveX ComboBox
I'm trying to copy data from one workbook into another workbook that is build as a survey.
In the survey form, we are using ActiveX controls for combo boxes and check boxes. I left two samples of ways I have tried (and failed).
Sub…

Jessica Archote
- 1
- 2
0
votes
2 answers
How to pass an array index or nested object property in a variable
I am trying to pass an index of associative array stored in a variable:
$a = array(
'one' => array('one' => 11, 'two' =>12),
'two' => array('one' => 21, 'two' => 22)
);
$s = "['one']['two']"; // here I am trying to assign keys to a variable…

djtester
- 63
- 4
0
votes
1 answer
Properties getting dropped from Object using Typescript and Angular
I have a class called RandomValue and a class called WeatherForecast. The WeatherForecast class works correctly and data populates the table. The RandomValues class/interface seems to return a list of objects with no properties. So I get a table…

jdmneon
- 444
- 7
- 12
0
votes
1 answer
Iterating about values of an object array property
I use the Angular InMemoryService to store some fake data. I would like to transform the "HashtagDB" property into the array "hashtags". This "hashtags" array should only contain the values, but not the labels, so that I can use it to display it as…

tobias hassebrock
- 153
- 1
- 16
0
votes
1 answer
JavaScript: Assigning a function to a property that will run anew each time the property is called
I'm creating an html5 JS form library. The idea is to turn elements with a class of .form-item into content editable divs, using the elements' data-attributes as instructions for the type of form item, validation, etc that should be created.
The…

maxedison
- 17,243
- 14
- 67
- 114
0
votes
1 answer
Creating object from array of objects based on properties
That is a bad title but an example of what I am trying to do is below.
I have the following array of objects (3 in this example but could be any number).
objArray =
[
{
name : "My_Object_1",
values : ["bob","tom","phil"],
children :…

jemble
- 23
- 4
0
votes
4 answers
Can a function be declared as a variable in JavaScript?
Consider the following JavaScript object definition :
var person = {
firstName: "John",
lastName : "Doe",
id : 5566,
fullName : function() {
return this.firstName + " " + this.lastName;
}
};
I know that if we want…

PHPLover
- 1
- 51
- 158
- 311
0
votes
0 answers
C# trying to extract the primary keys associated to my object from the dB
I want to store the primary key to a property of my object called dBID. Currently using a RestClient to get data from my db but I'm not too sure how I am to be able to return the DbSet of primary keys and get them to match like they do on the dB. So…

JayPhillips
- 87
- 1
- 7
0
votes
1 answer
What is the function of this counter? Eloquent JavaScript 4.4 Deep Comparison example
Teaching myself JS from various resources, including the book Eloquent Javascript. In the problem set for chapter 4, question 4 asks
Write a function, deepEqual, that takes two values and returns true only if they are the same value or are objects…
0
votes
2 answers
I'm not sure if I understand
I'm not sure if I understand properties() method right
It's pulling out values from $db_table_fields and making them keys in array $properties and also assigning them as values of the same array...?
don't want just to copy/paste code trying to…

Xigo
- 29
- 9
0
votes
0 answers
Protege reasoners cannot infer inverse property
I have a simple ontology with a class "Person" that has 3 individuals 'A','B','C'. They are related each other by an object property named isFatherOf, for example,
A isFatherOf B
B isFatherOf C
and I set another property hasFather, which is an…

user2870222
- 269
- 1
- 3
- 13
0
votes
0 answers
Symmetric Object Properties of Individuals in Protege
I have a small ontology with some individuals (like: Door1, Door2, Window1, Window2 etc.) belonging to the same class (Objects).
I also have an ObjectProperty:hasLink which is symmetric. Its domain is Thing and range is Objects class.
Let's say I…

Aidos
- 729
- 7
- 20