Questions tagged [definition]

A generic tag for topics providing definitions.

A generic tag for topics providing definitions.

1574 questions
0
votes
1 answer

Does it matter where I put the declaration of a variable?

Suppose I have the following two examples, will there be any difference between putting the variable declaration outside of the loop VS inside the loop, especially performance wise? Note: A new object is always being created inside the loop. Method…
0
votes
1 answer

python class definition Vs C++ class definition

I just observed how the classes are different in python when compared with C++. Like, In C++ Class test { int a,b; Void func() { } } In the above class template, a and b are only Object variables which are defined in the…
Kallis Kalyan
  • 17
  • 1
  • 2
0
votes
0 answers

Get an error in SQL Server 2008 stored procedure program about not matching table definition

I have written a stored procedure that get will create a temp table ... get Excel table into temp and then merge it with my table ... the problem is I got this error => Msg 213, Level 16, State 1, Procedure Insertsomething, Line 120 Column name…
Sijav
  • 1,525
  • 17
  • 21
0
votes
2 answers

How do i find all the lines/places/points where a particular function is being called in Visual Studio 2008?

Say I have a function named SampleMethod. I have called this method multiple times in my program. Is there any way I can navigate to each of the calling points in the program ? Quite frankly, is there way to reverse the usage of Go to definiton. I…
Divakar
  • 652
  • 2
  • 7
  • 18
0
votes
1 answer

Having Compiling trouble with definition function in another header

So I was wondering why I am getting the following error: Error 1 undefined reference to `MIN_COUNTER' C:\Users\Wyatt Crosby\Dropbox\Atmel Studio\ReflowController\ReflowController\ReflowController\Debug/.././ReflowController.c 146 1 …
user2368363
  • 309
  • 2
  • 11
0
votes
1 answer

Using a div as a background image for a definition list?

This may be a question already asked before, but I couldn't find anything on it, and it's a tad strange, so I thought I'd ask it here. My question is this: is it possible to use a div as a background image for another object, in this case a dt tag…
Cody Capella
  • 142
  • 1
  • 1
  • 12
0
votes
1 answer

The type 'x' already contains a definition for 'y'

I am receiving the following error in my code for 2 buttons that I changed the name of in the properties tab. Error 1 The type 'x100.MainWindow' already contains a definition for 'startBtn Error 2 The type 'x100.MainWindow' already contains…
ScorpioBlue
  • 189
  • 1
  • 5
  • 17
0
votes
1 answer

Having to add component to parent library to prevent #1065

The Setup I have two SWFs, A and B. A is a simple preloader for B, which is added as a child to A. B makes use of a custom class I've written that creates a photo gallery, which I'll call C. This is the first time I've tried making my own class, so…
Laurence Summers
  • 201
  • 1
  • 3
  • 14
0
votes
1 answer

SublimeText2 Syntax Definition Regex Error

I am trying to write a custom syntax definition for SublimeText 2. I made the regex and tested it (using SublimeText2's regex find), and the regex works for what i want it to, however, once I put it into the .tmLanguage file I get the following…
0
votes
1 answer

Full HD app playing on all devices, with Corona SDK. Please post your Tips

It's been about 1,5 week I'm using Corona, and I think that maybe I'm not using it the correct way trying to reach my goals. What are these?: I want to make an HD app. I want my app to look the SAME across all Armv7 (and up) devices. I want to have…
user2347313
  • 131
  • 2
  • 11
0
votes
2 answers

Better Method in Python to Call Changed Dict Values Than This?

class hero(): def __init__(self, name="Jimmy", prof="Warrior", weapon="Sword"): """Constructor for hero""" self.name = name self.prof = prof self.weapon = weapon self.herodict = { "Name":…
Paul Duncan
  • 302
  • 1
  • 5
  • 19
0
votes
1 answer

Link between variables in different programs in Fortran (f90)

I am trying to structure my Fortran program appropriately. I have a program GridGeneration.f90 that generates my grid mesh. I want to control the size of the grid in my main program, i.e. the grid size parameters N_x and N_y. Would this for example…
l3win
  • 235
  • 3
  • 10
0
votes
1 answer

asp:Button not responding to clicks with OnClick

I seem to be having a problem with my button's OnClick, it doesn't even react at all to the event. It responds to OnClientClick and executes the code, but when I try to relate it o a function in my .aspx.cs class it just ignores it, and it should be…
noneabove
  • 89
  • 2
  • 12
0
votes
3 answers

Python find method in class

I have defined a class called Point which defines a point in the x, y coordinate system. The definition and methods are shown below. I created my own version of the str method to return the created point in a printable form (required). However,…
0
votes
2 answers

Using variables in an array passed to a def - Rails

I'm using the Google charts API to generate a pie chart in my Rails application. However, I'm having a problem passing local variables to the def in the helper. The def takes a 2D array of [label, value] pairs. It doesn't like it when I try to…
Ryan
  • 557
  • 10
  • 18