Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is "Dim" Used for in ASP? [duplicate]

I've been googling around and had not that much success in getting an understanding of what "Dim" is used for in ASP (I'm obviously very new to ASP, so apologies for my dim-wittedness..).

I see dim used as though it is for 'declaring' variables or something of that nature? Can someone please clarify its purpose/use/functionality? Thanks!

like image 449
ImGreg Avatar asked Jul 05 '11 19:07

ImGreg


People also ask

What is the use of Dim?

The Visual Basic compiler uses the Dim statement to determine the variable's data type and other information, such as what code can access the variable. The following example declares a variable to hold an Integer value. You can specify any data type or the name of an enumeration, structure, class, or interface.

What is dim in asp net?

In ASP you declare a variable with the use of the Dim keyword, which is short for Dimension. Dimension in english refers to the amount of space something takes up in the real world, but in computer terms it refers to space in computer memory.

What is Dim data type?

Dim is short for the word Dimension and it allows you to declare variable names and their type. Dim is often found at the beginning of macro codes and has the following format: Dim [Insert Variable Name] as [Insert Variable Type]

Whats Dim in c#?

Dim keyword is used in VB.net. This keyword is used when value need to be stored in variable is not defined. Likewise in C# we will var to store values of variable type.


1 Answers

Yes, 'Dim' (short for dimension) declares a variable in VBScript:

http://msdn.microsoft.com/en-us/library/zexdsyc0(v=vs.85).aspx

like image 137
Luke Girvin Avatar answered Sep 27 '22 21:09

Luke Girvin