Variable Name Declaration With []

Mar 8, 2010

In this

Dim [end] As Point = e.Location

what is the significance of the [] 's?

View 4 Replies


ADVERTISEMENT

Getting Sql Variable Declaration Error

Jan 19, 2011

I have the following form[code]...

and when I run my app, I get a SQL error that tells me that I need to declare a value for '@payperiodstartdate' but I know that that value is declared because the first query runs fine. I am told that the line where the error is is line 59, which is this line [code]...

View 1 Replies

Variable Declaration Convert From C#

May 17, 2010

I'm working on a home project using DirectShow.Net. to learn some VB.net. Most of the examples I've found have all been in C# so I'm looking through code for ideas and converting where I need to. I keep stumbling upon these declarations and I'm unsure how to convert it to a VB.Net statement.[code]Then the second part seems to be assigning the value but as its made up of two parts im unsure how that works?

View 2 Replies

LINQ Variable Declaration Type?

Feb 1, 2010

[code].....

View 4 Replies

Loop Variable Declaration Efficiency?

Jan 27, 2012

wondering about the relatively efficiency of declaring oop variables in the loops, emselves, or declaring them before first use. Here are some examples:Declare early:

Dim ix As Integer
Dim currentNode As System.Xml.XmlNode
For ix = 1 To 100

[code].....

View 9 Replies

Variable Declaration (Dim) And Assignment In 1 Statement?

Oct 24, 2011

I have noticed in VB.Net that most Dim statements also include an assignment. Eg:Dim myvar As String = "Hello World"As this wasn't possible in VB6 I have always done the following:

Dim myvar As String
myvar = "Hello World"

View 3 Replies

Variable Declaration Inside A Loop?

Aug 26, 2011

For i As Integer = 1 To 10
Dim j As Integer = 10
Next

now my question is, Is memory allocated to j every time its executed inside for loop? or only value of 10 is assigned on subsequent iterations?

View 2 Replies

C# - Inline Definition And Long-declaration Of A Variable

Feb 20, 2012

im sure im mis-wording the concept but here it is anyways. I know in CSharp you can do

el.AppendChild(new UISize(file, "TSize") { CX = 95, CY = 20 });

which declares a temporary bucket variable and then assigns the associate property values to the variable. Which then sends it to the XMLElement AppendChild method. What is this design concept called? What is the conversion to VB.Net? I have tried using my own online utility that does a 90-95% conversion rate from C# <-> VB.Net. It has failed in this instance, and so need a hand-up on what i am looking to do to convert this from C# to VB.Net. I would really like to not have to do a long-declaration of a variable with assignments, if at all possible.

View 1 Replies

DLL Declaration Won't Accept Constant String Variable?

Apr 26, 2010

I'm making a call to my DLL file (prototyping 30+ functions), and want to be able to switch between different versions of the DLL quickly while in development. Thus, i want to replace the literal string constant that follows the "Lib" key word, with a variable string constant. In case there's any confusion in my use of the jargon. I am currently able to do this:

[Code]...

View 1 Replies

How Could I Create Declaration(event) To A Variable Control

Nov 22, 2010

How could I create declaration(event) to a variable control in VB .net ? [code]please i need to know how to insert this (declaration) newweb_ DocumentCompleted it's similar to WebBrowser_DocumentCompleted but it's a variable

View 5 Replies

Variable Declaration - How The Heck Does The Program Know Which One To Use At Runtime

May 31, 2011

When I scroll down to the function shown below, and right click Analogues - go to definition it takes me to the top of the file, and lands on top of the

[Code]...

View 3 Replies

Variable Declaration - Signification Of Question Mark?

Jul 8, 2010

I was looking at some existing code and stumbled across a variable declaration I didn't understand.
public foo as Boolean?
What does the question mark signify?

View 2 Replies

VS 2010 Proper Variable Declaration Conventions?

Jan 4, 2011

I've been programming for many years in many languages and I've seen the variable declarations conventions change. With VS 2010 I've noticed you don't have to declare the variable type. I work alone so I can use any method I want. But, someday I may want to sell some of my code so I would like to keep my programming conventions current.

In VS 2010 which of these would be considered the best convention?

Dim srtFirstName = "Bob"
Dim strFirstName As String = "Bob"
Dim FirstName = "Bob"
Dim FirstName As String = "Bob"

View 5 Replies

VB 2008 Why Are Static Variables Set Equal To 0 In The Declaration When 0 Would Be The Default Value Of The Numeric Variable

Apr 21, 2010

Why are static variables set equal to 0 in the declaration when 0 would be the default value of the numeric variable anyway when it's first declared? Not including the "=0" in the static declaration seems to work with no problem.

View 2 Replies

Declaration Of Dynamic Runtime Array Declaration

Jun 21, 2011

I got problem regarding declaration of dynamic runtime array declaration Here is my code

[Code]...

View 5 Replies

Declaration Error In .net?

Feb 26, 2009

How can rightfully declare these in VB.net , in my coding it's highligted errors on these declaration.

Dim excel As New Microsoft.Office.Interop.Excel.ApplicationClass
Dim wBook As Microsoft.Office.Interop.Excel.Workbook
Dim wSheet As Microsoft.Office.Interop.Excel.Worksheet

View 1 Replies

Declaration Expected In VB Dll?

Jan 19, 2011

I am currently working on VB. I am using Visual Studio 2008.

The piece of code below is a console application which builds without any error.

Imports System.Net
Module Module1
Public Sub Main()

[Code]....

View 1 Replies

Getting The Declaration And Usage?

Aug 6, 2009

I was told to use this to specify a folder that I want my node to go to.

(Declaration)
<ComVisibleAttribute(True)>
Public Enumeration SpecialFolder
(Usage)
Dim instance As Environment.SpecialFolder

View 2 Replies

VS 2010 What Is The Declaration

Dec 16, 2009

What is the appropriate declaration such as "ValueChanged" or "Click" for a NumericUpDown that will execute the code when I press enter. I already know that setting the "AcceptButton" property of the main form to a default button will not work, especially if I want a different button to be selected depending on which control I give focus.

PS: Is the syntax any different from Visual Basic 2010 Express than it is on Visual Studio 2012 RC (running in Visual Basic Mode)?

View 1 Replies

Way To Make Declaration

Apr 22, 2010

This is some homework material[code]...

View 9 Replies

VS 2008 Error: Range Variable 'sender' Hides A Variable In An Enclosing Block Or A Range Variable Previously Defined In The Query Expression

Mar 25, 2010

I am getting the error:"Range variable 'sender' hides a variable in an enclosing block or a range variable previously defined in the query expression."for this

Imports System.Data.SqlClient
Imports System.Linq
Public Class Form1

[code]....

I can select any other item from the table without the error. "sender" has the same properties as "receiver" in the SQL table.

View 2 Replies

.net - Shorten Array Declaration?

Sep 15, 2010

Question: How to shorten this array creation ? I need to create an array of type ReportingService2005_WebService.Property with one property.

Something like:

Dim PropertyArray() as new ReportingService2005_WebService.Property(1)

I have to do this:

Dim PropertyArray As ReportingService2005_WebService.Property() = New ReportingService2005_WebService.Property(0) {}
PropertyArray(0) = New ReportingService2005_WebService.Property

[Code].....

View 1 Replies

Can't Add To An Array : Declaration Expected

Jan 5, 2009

For some reason when i declare an array and set it to a certain amount of elements then under it specify the elements it works in VB 2005 but when i do it in VB 2008 it get : "declaration expected " and i get words underlined.

Public Class Form1
Dim words(20) As String
words(1)="Computer"
End Class

Let me know how to do this in 2008!

View 8 Replies

Currency Declaration For Vb2008?

Aug 30, 2011

Currency Declaration in vb2008.

View 2 Replies

Declaration Error In With Statement?

Jan 16, 2012

There's error in the codes below: but I can't see what caused the error

View 4 Replies

Declaration Expected Before Using Namespace?

Jun 30, 2010

A "declaration expected" error occurs when attempting to use any of the MY objects. What declaration needs to be made?

View 4 Replies

Declaration For AccessibleObjectFromEvent Or Equivalent

Jul 6, 2010

Does anyone know of a working declaration for the API "AccessibleObjectFromEvent"? Or a good .net equivalent? I've spent so much time getting the other main Accessible API to work on .NET, that I'm hoping to start with a good declare on this one.

I've built a really good narrator, for totally blind people so that they can interface and use the computer in a substantial way. The innovation is a static mouse that controls category input, rather than free mouse movement, and the middle wheel selects items of that category. But I need the last access API for events and voice feedback when the event occurs. I'm guessing it's something like this, according to what works for the other API: Code:

This is loosely based upon microsoft Access example written in vb6, available as an online download. I've have not seen a .NET example online, so it might prove useful for someone.

View 3 Replies

Declaration Of Configuration Manager?

Apr 15, 2011

how to solve the error message " ConfigurationaManager not declared" when used to connect to database here is the line of code which gives the error

SQLConnStr= ConfigurationManager.ConnectionStrings("SQLConnStr").ConnectionString

View 1 Replies

Declaration Of Variables In2010

Jun 7, 2012

I am creating a kind of a "naive" search engine.What I have done is distributed words in files where each file corresponds to the starting letter of the words (i.e. if its English, then 26 files are there)Then when the search system loads I am loading all the words in hash tables (26 hash tables corresponding to 26 alpha-characters) for which I am using an array of structures.The problem is after declaring the variables in a Form load subroutine, the variables are not able to use those values in other subroutines..How do I properly declare them so their values persist?

View 1 Replies

Declaration String Does Not Work

Aug 23, 2010

I need to Dim lblFilePath. As what do I Dim it, String dos not work. This might not makes sence to you,

[Code]....

View 8 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved