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!
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.
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.
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]
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.
Yes, 'Dim' (short for dimension) declares a variable in VBScript:
http://msdn.microsoft.com/en-us/library/zexdsyc0(v=vs.85).aspx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With