主要回答在Visual Basic语言中的含义:
在“可视化BASIC”和“BASIC” 语言中DIM代表什么?
在BASIC中,由于DIM通常用于定义一个数组的维度,所以DIM原本代表维度。(BASIC原始的实现是Dartmouth BASIC,它派生于FORTHAN语言,在FORTHAN中,使用这个关键字DIMENSION的全称)。
现今,Dim用于定义任何变量,不仅只是数组,所以Dim的意思已不再直观了。
网页链接 这是原文网址
What does DIM stand for in Visual Basic and BASIC?
Dim originally (in BASIC) stood for Dimension, as it was used to define the dimensions of an array.(The original implementation of BASIC was Dartmouth BASIC, which descended from FORTRAN, where DIMENSION is spelled out.)
Nowadays, Dim is used to define any variable, not just arrays, so its meaning is not intuitive anymore.