Questions tagged [objectname]
49 questions
0
votes
2 answers
Python scripting in ABAQUS
I have a python script to create ABAQUS model and run a job.
I want to create a loop over a variable
index=1:1:4,
create four different models and run the four jobs for each model.
A model is named 'Model-1' for instance in the following…

gama
- 1
- 2
0
votes
1 answer
Assign from object to a class instance
I have a Class Dogs, and one of its properties is called MyPictureBox (type of PictureBox). I also have four picture boxes on the windows form.
I have this piece of code assigning corresponding pictureBoxes to the instance of each Dog. And this…

Mikle
- 1
0
votes
1 answer
c# object by name in static method
My question is: Can I define a static method "meth1" in a static class "classB" that, when called from "classA", searches for a specific field (in "classA", not in the class in which is defined)?
I try to explain better: I need to do something like…

Andrea
- 17
- 1
- 7
0
votes
2 answers
AS3 MovieClip name ambiguity
Summary: I create instances of various MovieClips via AS3, using MovieClip class objects that are defined in the library.
As each MC is instantiated, I push it into an array for later reference.
Finally I create an XML file that contains data…

Colin
- 5
- 1
0
votes
0 answers
ASP.NET dynamic HTML object name
I need use dynamic 'variable' name in this code. Can you help me?
Like this "Html object id.ToString();"
public static void ddl(string sorgu,object ad)
{
using (SqlConnection cnn = new…

Uğur Canbulat
- 11
- 6
0
votes
1 answer
How would I create two matrices (all values Ones or values Zeros) using static member functions which call the same constructor?
So basically the way my program works for using a static member function to request a 2x4 matrix of Zeros proceeds as follows:
Matrix Matrix::Zeros (const int noOfRows, const int noOfCols){
Matrix outZ(noOfRows, noOfCols);
return outZ;
}…

MachoSkinny
- 31
- 5
0
votes
1 answer
Get name of event source object in java
I'm creating a number of event handlers and to keep things clean, rather than having a massive stack of if...else for the 20+ objects that could be the source in each handler, I'm trying to use a switch-case. The issue, of course, is that you can…

CodeJunky78
- 13
- 1
- 5
0
votes
1 answer
Oracle UCP dynamic mbean objectName
I am trying to use the restful interface to invoke the Mbeans, can someone shed light as to how to connect to a dynamic ObjectName like that of the…

bytecar
- 11
- 4
0
votes
2 answers
Using a variable in the selection of an object (textbox in this case)
I have a multiple textboxes in a form, and with the typed information I create an object called UserClass. I want to create multiple users and for this I have different textboxes called tbName1, tbName2 etc. Is it possible to use a variable in the…

Aecnoril
- 11
- 1
0
votes
2 answers
Python- Use value of pop as object name
I am taking in user input and creating objects with it. So I have a list of acceptable object names (A-E). What I figured I could do was pop(0) and use the return value as the name of the object. This way there is never a duplicate object name upon…

user3002598
- 29
- 4
0
votes
2 answers
Using concatenation with strings and partial object names in C#
Im looking for a way to gain the name of an object through the ID that it has been set to.
The first part of the name is always the same, eg. "Rating" and then I would want to concatenate it with the current value of a count integer, eg. "Rating" +…

matt
- 67
- 1
- 10
0
votes
1 answer
0
votes
1 answer
Give object name of a variable string
I want to give an object a name that's changes all the time. I have a foreach in which I set a pushpin. Each time there is being looped through the foreach, I want there to be a new name based on whats in my list (I'm looping through my list).
for…

user3478148
- 433
- 1
- 8
- 26
0
votes
0 answers
PHP creating dynamic objects and php.ini settings
I have a strange problem with creating dynamic objects.
On my local server with PHP 5.3.10-1ubuntu3.8 this code works fine:
$sObjName = 'field_xyz';
$o = $oVendor->{$sObjName};
print_r($o); //prints the object…

jb7AN
- 77
- 1
- 6
0
votes
3 answers
Integer value inside name of object (xcode)
My idea is to add generated integer value to the name of UIImageView. Here is an example: I have three UIImageViews named imageView1, imageView2, imageView3. When a button is pressed I have there this simple code:
self.value = value + 1;
(and of…

TomasJ
- 289
- 8
- 21