Re: Could someone explain this variable please
- From: Jamie <jamie_5_not_valid_after_5_Please@xxxxxxxxxxx>
- Date: Sun, 24 Apr 2005 22:44:23 -0700
Tim wrote:
What exactly is this declaring?
somevar: 0..100;
And how and why is it used?
Thanks.
range used in creating arrays for example. instead of having arrays that index at 0 for the first one, you could have an array that indexes at any starting number you want! this does not mean that it's actually starting that much higher in the position of the array how ever. 1..101 is the same as 0..100 in count. the difference is, 1 on the first example is the start of the first item in the array while 0 on the second example is the start of the first item in the array. etc// its also used in sets, range comparing! for example if SomeVariale in [10..40] then ... which means if the Variable value falls in that range then its true.. et.c..
.
- References:
- Prev by Date: Re: Delphi DLL / VB app
- Next by Date: Re: Delphi DLL / VB app
- Previous by thread: Re: Could someone explain this variable please
- Next by thread: Switching between applications
- Index(es):
Relevant Pages
|
|