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

Different ways to declare/define variables?

This is a VB.Net newbie question. I'm confused at the different ways to declare and define variables. Here's an example: Dim URL As String = http://www.c-sharpcorner.com/default.asp Dim request As HttpWebRequest = WebRequest.Create(URL) Dim response…
Gulbahar
  • 5,343
  • 20
  • 70
  • 93
0
votes
2 answers

How can I declare and set Cursor in Android written by C#

I have A code like this: public List getAllSdCardTracks(Context context) { List tracks = new List(); Cursor c = context //this is the problem .getContentResolver() …
Ali Niaki
  • 128
  • 2
  • 11
0
votes
1 answer

ssrs date filter expression for startdate/enddate declared variables

I should create ssrs report and I have following scenario: I have sql query with median, q25, q75 functions. The query is grouped by geography. Date, which is not grouped, should be filtered in ssrs in order to calculate aggregations for certain…
user2017606
0
votes
1 answer

ns3 mobile node declaration

I'm in need of creating mobile device node to communicate between nodes using wifi for sharing files need to be simulated using ns3. Can help me with the code Declaration and creation of mobile device node.
suuz
  • 13
  • 6
0
votes
1 answer

C# / XAML: How to declare a textbox in XAML code that is used in a class

How do I declare a textbox in the XAML code that is used in a class? I copied all the source code from the MainWindow.xaml.cs to another class because the MainWindow is getting to big. I hope you can help me. Thanks in advance. The following causes…
sjantke
  • 605
  • 4
  • 9
  • 35
0
votes
0 answers

MySQL create trigger declare

I am trying to complete this question ** Produce an audit trail (in a separate table) that records the current username, system date & grade change when someone attempts to update a Students grade ** Here are the tables and columns Module…
0
votes
2 answers

how to excute a Sp with dynamic parameter

I have created a stored procedure to find name and designation by supplying income of an employee Create PROCEDURE GetEmployeessalaryInOutputVariable ( @Income INT, -- Input parameter, Income of the Employee @FirstName…
ashu
  • 497
  • 1
  • 10
  • 21
0
votes
1 answer

creating a dll file in code::blocks and using it in powerpoint 2007

I have tired to create a dll file in code blocks and then use it in my powerpoint presentation. In the dll file as I have mentioned below the argument of the function contains (LPCSTR) void DLL_EXPORT SomeFunction(const LPCSTR…
Hamid
  • 43
  • 2
  • 4
0
votes
1 answer

How to give a letter input a number value

So i am trying to make a simple program that uses a user input which will be a letter and number and make the program read it as a number so at the end the numbers get added. Let me give an example. If the user inputs A1 i want the program to read…
dazzaondmic
  • 345
  • 4
  • 14
0
votes
0 answers

Dojo Declare returning This has window

I'm using dojo declare to build out a presenter file. In the constructor, I'm passing in params which is an object literal having one attribute called product. Then I have other methods inside of product. When then calling other methods, the this…
Kyle
  • 1,058
  • 2
  • 10
  • 22
0
votes
5 answers

Is it possible to link integers from a method to a class?

I have a quick question out of curiosity...if I declare an integer in one method, for example: i = 1, is it possible for me to take that i and use its value in my main class (or another method)? The following code may be helpful in understanding…
Benjamin Z
  • 7
  • 1
  • 3
0
votes
1 answer

declare variable which will be an object php

I want to declare all the variables that i will use in a script on top of it,eg $user_class= ''; $user_id = 0; $user_profile = ''; What should be used for $user_class which will be an object?
0
votes
3 answers

Can't declare an object in if else. Not visible outside if else clause

When I instantiate the Textwriter object in the if/else clause, it is not visible outside the clause. What can I do here? I want to either append to or write a new file. Here is the code: private static void eventfull_doing() { …
somethingSomething
  • 830
  • 7
  • 20
  • 43
0
votes
1 answer

Redeclare a Variable or Object after Declaration in vb.net

Is there a possible way that I can set for example a public dummy Variable or Object Public Connection, and after then in the code/class I decide to set it like: Connection = SqlConnection or (depends on) Connection = OdbcConnection so that I do…
cernoel
  • 21
  • 5
0
votes
0 answers

DECLARE statement make variables to be global?

Why DECLARE statement is making declared variables to be global? For example: SET NOCOUNT ON GO DECLARE @LoopCounter TINYINT = 3 WHILE @LoopCounter <> 0 BEGIN DECLARE @TempDataSource TABLE ([ID] TINYINT) SELECT [ID] …
gotqn
  • 42,737
  • 46
  • 157
  • 243