Questions tagged [object-properties]
117 questions
1
vote
1 answer
How to get only Textual Properties of an object inTest Complete?
I am trying to fetch textual properties of an object.In this case I have taken a notepad and trying to fetch properties via below snippet.But my problem is I am able to get all the properties including the properties whose value is an object.How can…

Srikant Barik
- 133
- 2
- 12
1
vote
0 answers
owl protege restrictions on object property based on a property value
In my ontology I would like to say that a person can win prizes based on his/her gender.
I have a class "Actor" and a class "Prize", which has two subclasses: "Male prizes" and "Female prizes".
I specified the class "Actor" on protege this way:
…

Usr
- 2,628
- 10
- 51
- 91
1
vote
1 answer
Javascript - Property of an object has the value of NaN, even when I explicitly assign it a number value
I am making a basic platform game in my spare time, and I am currently trying to add gravity. The game runs in a canvas, and so I am using black pixels as solid objects. The sprites I am making are supposed to fall when they have not contacted a…

ThirtyOddLinesOfCode
- 13
- 4
1
vote
1 answer
Class instance variable does not retain changes when method is called
I created a class in MATLAB:
classdef Compiler
%UNTITLED2 Summary of this class goes here
% Detailed explanation goes here
properties(Access = public)
in='' %a line of string of MATLAB code
out={} %several lines of string(cell…

Michelle Shieh
- 145
- 1
- 1
- 8
1
vote
4 answers
C# : Setting the properties of an object in a single block
Is a way to set the properties of an object in a block using C#, similar to how you write an object initializer?
For example:
Button x = new Button(){
Text = "Button",
BackColor = Color.White
};
Is there a syntax similar to this that can…

Furkan
- 415
- 5
- 17
1
vote
1 answer
Excel VBA: Adding Collection to class property
I'm working on a little project and I keep getting a problem with one of the "letters" where it's saying Arguement not optional.
I have clsXML which is here
The line i am getting the error on is here CurrentProduct.Prompts =…

joeb
- 777
- 8
- 28
1
vote
1 answer
Powershell Child Property Reference Parent Property
I'm trying to set a child property in a custom object using a parent property.
$objServer = New-Object PSObject -Property @{
Name = "Some Name";
BaseFilePath = "c:\somepath"
Section1 = New-Object PSObject -Property @{
…

Hecatonchires
- 1,009
- 4
- 13
- 42
1
vote
1 answer
Merge two eloquent collections into one object property?
We can create empty objects in php using th stdClass and we can add properties to it like this:
$data = new stdClass;
$data->xyz = something;
But how could we add more things to a property? i mean something like this:
$data->xyz +=…

Jonathan Solorzano
- 6,812
- 20
- 70
- 131
1
vote
1 answer
Marlett font missing from VBA object properties
I want to place a green tick mark on a userform and thought that creating a label with the caption "a" in Marlett font would do the trick. However, Marlett isn't showing up in the object properties despite definitely being installed. I can easily…

gherka
- 1,416
- 10
- 17
1
vote
1 answer
Iterate over object properties of an anonymous type list
I am using EPPlus to create an "Export to Excel" helper. This will basically take an anonymous list and use that list to populate the spreadsheet.
I want to be able to iterate over the list object's properties and determine which is a datetime and…

NealR
- 10,189
- 61
- 159
- 299
1
vote
3 answers
absence of value in javascript (undefined)
I have list of objects with key value & pair.when I am separating those to display each information on a specific field .
I am getting type error data.validation[i].user is undefined
But I have checked the variables have been assigned a value.
var…

user2742540
- 45
- 2
- 7
1
vote
1 answer
Changing Property Values of Array Item in PHP by keeping original instance
I am unsure about my approach on changing property values of an object by its original pointer, after pushing it into an array.
In my parent class, there is an array of objects, and the function that pushes items into it returns the original…

mavrosxristoforos
- 3,573
- 2
- 25
- 40
1
vote
2 answers
Culture formatting of an object property
I have an object with a number property (double) and has no specific culture set.
This property is derived from a database when the user logs into the website.
The culture formatting in the database is en-GB.
When the property is called and returns…

Stuart
- 1,544
- 5
- 29
- 45
1
vote
1 answer
How to translate RDF graphs properties into OWL object properties?
I need to convert my RDF graph document into OWL (1 or 2) recognized by Protege 3.x. There is a W3C Recommendation for mapping OWL 2 Web Ontology Language Mapping to RDF Graphs which says that to declare Object Properties from RDF graphs one should…

Edi
- 109
- 11
1
vote
1 answer
How to run boolean test on GImage
Beginner question . . . I want to run a boolean test on a GImage object, but I don't know how. For example, if my GImage is displaying "image1.jpg" file, I want to do 'a'. But if it is displaying anything else, I want to do 'b'. The images are…

Matt
- 657
- 6
- 12