An instance is a specific realization of any object.
Questions tagged [instances]
516 questions
0
votes
1 answer
Working across multiple workbooks/instances 1004 error
I am getting a Run-time error '1004': Method 'Ranger' of object '_Worksheet' failed on the following code.
Public sh2 As Worksheet
Public sh1 As Worksheet
Public wb1 As Workbook
Public OtherWB As Object
Sub Test()
Set wb1 = ThisWorkbook
Set…

Josh
- 265
- 6
- 11
- 20
0
votes
5 answers
Peculiar behavior of Classes in Python
I'm learning Python, but have no OOP experience. I'm entering the following lines in IDLE (Python 3.3), and the behavior of the objects is confusing me:
>>> class IBAN:
ISOcode = ' '
checkDigits = '00'
class CCC:
bankCode =…

Trimax
- 2,413
- 7
- 35
- 59
0
votes
2 answers
How to call a function within an instance? Python & Kivy
Good Afternoon all thanks for any insight....again!
How do I call the def clearwidgets from def changetxt within an instance, if I use self.parent.clearwidgets, I receive anchor layout does not support this, which would be correct, as the ultimate…

DeadZero
- 1,261
- 3
- 11
- 15
0
votes
2 answers
Class as a parametr when counting instances of classes
I have class Counter with a method add which will count instances of any classes when creating but I get "The method add(Class) in the type Counter is not applicable for the arguments (MyClass)" How can I fix it? What should I type instead of…

user3210906
- 17
- 3
0
votes
1 answer
how to match attributes order of two instances in weka
i have two Instances from StringToWordVector filter' output in this format:
instances1
a b c
1 3 2
5 6 7
instances2
b c a
8 9 1
5 7 8
i want to match these attribute and make a merged instances in this format :
a b c
1 2 3
5 6 7
1 8 9
8 5 7

MSepehr
- 890
- 2
- 13
- 36
0
votes
2 answers
merge two set of weka instances with different Attribute set
i need to merge two instances(those are output of StrinToWordVector) with different set of attribute but overlapping and completely different instances in weka .is there any easy way to do it ?(in other word,i have two tfidf matrix with diferent…

MSepehr
- 890
- 2
- 13
- 36
0
votes
2 answers
Delete GCE instance AND its root persistent disk from within the instance
I'm trying to accomplish something that was simple to do before in GCE with scratch disks. Basically I want to start an instance (now using a newly created root persistent disk), have the instance run some computation, then have the instance kill…

aloo
- 5,331
- 7
- 55
- 94
0
votes
1 answer
Multiple Instances of the same project/program
How is the seperation of multiple instances of the same project/program done, that means which mechanism seperates the data of two instances of the same project/program?
Edit:
Examples:
When using a write program two times and working with FILE1…

Streight
- 811
- 4
- 15
- 28
0
votes
1 answer
Add content to fixed swipe tabs in android
I've used the Eclipse template to generate a swiping layout.
I've extended the pages from 3 to 5 with switch/case.
I've also put an imageview into the dummy fragment.
Now I have 5 fragments with the same image. How do I manage the single instances,…

Muteking
- 1,465
- 5
- 18
- 31
0
votes
1 answer
Naive Bayes (Weka) - Attributes total x Instances total - Why is it different?
I've been running a dataset through Weka, applying NB.
I stuck on the following problem: while I was analyzing it, I noticed the difference between total number in attributes section, and total instances appeared in log.
If you sum "a0" attribute,…

Hamikzo
- 254
- 1
- 9
0
votes
1 answer
Android: Launch app from app installer will cause several instances?
1.install an apk from app installer
2.then just click "OPEN" to launch it at once
3.after the app launched and then press HOME key
4.find the app from app list and click its icon to launch again
5.then the app will be launched with a new instance.…

Twos
- 185
- 1
- 1
- 7
0
votes
1 answer
Error while using array of delegates in console program
Hello hi every one below is the program which i am making purpose of the program is that it simply get input and output.....but this error is coming,
Error 1 'method' does not contain a constructor that takes '0' arguments
using System;
…

Niazi
- 105
- 11
0
votes
1 answer
Value of constructor and prototype gets changed after over writing the prototype object. Why?
I have the Director() function. I have created 2 instances AlfredH and JohnD out of Director() constructor. I did not write the prototype object.
function Director(){
this.genre = "Thriller";
}
var AlfredH = new Director();
var JohnD = new…

krishna
- 575
- 2
- 8
- 22
0
votes
1 answer
Generation of apparently inconsistent alloy instances
I am doing a metamodel in alloy for a subset of Java.
Below we have some signatures:
abstract sig Id {}
sig Package{}
sig ClassId, MethodId,FieldId extends Id {}
abstract sig Accessibility {}
one sig public, private_, protected extends Accessibility…

Tarciana
- 113
- 10
0
votes
2 answers
XCode - multiple instances of custom class
New to XCode, coming from a VB.net background so may be missing something basic.
Have created a .h and .m file for a basic class. Code listed below.
//
// tttMove.h
// TicTocToe
//
// Created by Matthew Baker on 12/09/2013.
// Copyright (c) 2013…

Matthew Baker
- 2,637
- 4
- 24
- 49