Questions tagged [declare]

Use this tag for questions related to declare, which is usually meant for declaring variables, statements, etc.

736 questions
0
votes
1 answer

(Qt C++) Fill QMap with value and declare/initialize at same time?

How could I fill a QMap value with a QPixmap and create that variable at the same time? It's really hard for me to explain What I currently have: QMap slot_pic; slot_pic["block1damage0"] =…
mrg95
  • 2,371
  • 11
  • 46
  • 89
0
votes
0 answers

How can I declare types of Pascal in Java?

Recently I'm working on my project based on a program written by me in Pascal a year before. In this project I have to make it in to java and transform it to an app. I got stuck when I tried to declare variables. Here is my Pascal code: const…
0
votes
2 answers

SQL declare variable for a long and repetitive select

I want to declare a variable and do the following : Select cast (SUM(case when @Dummy is not null then 1 else 0 end)*1.0/443321 as decimal(10,5)) @Dummy FROM hellotable WHERE @Dummy in ("100 different field names in hellotable") However…
Kric
  • 103
  • 3
  • 10
0
votes
1 answer

dojo declare constructor and this object and safemixin

I am reading an application code that written dojo. define(["dojo/ready", "dojo/_base/declare"], function(ready, declare) { return declare("application.main", null, { constructor: function(options) { var _self = this; …
bayramucuncu
  • 1,014
  • 10
  • 20
0
votes
1 answer

Fatal error: Cannot redeclare

I'm using an image management script/module on one of my websites. In an old version of the script i had no problem importing multiple image-galleries on one page but since I upgraded to a newer version I'm getting the following error (i left out…
wlp
  • 1
  • 1
0
votes
3 answers

How do I declare an array of objects within it's own class?

I am unsure how to create an array of objects within its own class. For example: class A { public: const static int MAX_SIZE = 10; private: A arrayOfOBjects[MAX_SIZE]; } I get an error saying, "incomplete type is now allowed" How would I…
Emmett
  • 357
  • 2
  • 4
  • 15
0
votes
1 answer

ORACLE DECLARE CURSOR for LONG datatyped Column inserting

I want to transfer values in a database to another database. But in my source database there are table with columns with LONG datatype. So i cant simply use the insert command for these LONG typed Columns. So i read this :…
0
votes
1 answer

Declare Global Variable inside a Button1_Click

I tried to google this abit but I could'nt find anything useful. So I in my form1_load I have this variable Dim Myvariable As String then in a button click I want Myvariable = "Hello" Problem is that my code tells me that Myvariable in the…
Thomja
  • 259
  • 5
  • 15
0
votes
2 answers

iOS Objective C Method issue

I am trying to port a project of mine from Android to iOS and I am running into some fundamental issues that have been vexing. Like currently for instance I can't call a method I created because it doesn't seem to exist which is confusing because it…
Daisy
  • 121
  • 11
0
votes
1 answer

sql issue with declare query

I've got a java application that I'm using to retrieve information from a table in sql. The problem is that the tables change depending on the main application that is using them; there is a view that has all of the active information from the…
user2168435
  • 732
  • 2
  • 10
  • 27
0
votes
3 answers

Creating a number of integers by user request

I recently started learning C and wanted to know if there was a way to declare some integers, with the value given by the user. For example, the user types in 3. I would like to create 3 integers, example a, b and c. If the user types in 5, I'd like…
iG0tB00ts
  • 11
  • 1
  • 1
  • 2
0
votes
3 answers

How do I create a list with no predefined length and assigned values to their positions, in Dart?

I'm developing my first application with Dart, which had previously created in JavaScript. In my statement in JavaScript I have declared a List, and I assign values ​​to the first three positions, as seen here: serpF var = new List (); serpF [0] =…
yiara
  • 3
  • 1
0
votes
1 answer

aspect declare @type

I'm trying to solve the following problem: I have an aspect defined like this: public aspect ComponentAspect { declare @type : uk.co.xxx.* : @Component; } As expected it annotates everything in "uk.co.xxx" package, the thing is I don't need to…
user2174470
  • 131
  • 1
  • 3
0
votes
1 answer

Backup database with different name time-related

My code ,for agent's job on SQL server 2008 , generate the backup file, but it keep OVERWRITE the first bak file everytime the agent's job triggered !!? how can i make backup with different name time-related e.g: testDB201313328.bak and after 1…
Rami Alshoubaki
  • 67
  • 1
  • 2
  • 10
0
votes
1 answer

Methods and passing a double

i keep getting an error message on this one piece of code. i tried declaring it and passing it in a tone of different ways. my apologies if the code isn't that advanced. i'm still a beginner. /* * To change this template, choose Tools | Templates …