Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dim varname (0 to var) as double????
Message
From
16/11/2002 18:46:12
 
 
To
16/11/2002 18:09:11
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00723577
Message ID:
00723579
Views:
10
You have two options:
1. If you want simple to use varialble, which always will have this value, you must declare it as constant:
[in General Declarations]
Private Const Var = 10

[in some sub or function]
Dim VarName (0 To Var) As Double
2. If you want to declare array with variable number of elements (dynamic array), you must use ReDim operator:
Dim VarName() As Double
...
Var = 10
ReDim VarName(0 To Var) As Double

Plamen Ivanov
MCSD .NET Early Achiever and MCAD .NET Charter Member (VB .NET/SQL Server 2000)
MCSD (VB 6.0/SQL Server 2000)

VB (.NET) - what other language do you need in the whole Universe?...

Previous
Reply
Map
View

Click here to load this message in the networking platform