Re: Could someone explain this variable please



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..

.



Relevant Pages

  • RE: Arrays, Got Me Confused
    ... Thanks for that Tim and Steve, ... Basically I'm trying to create a class that contains an array of MAC ... Python has two central datastructures ...
    (comp.lang.python)
  • Re: C question!
    ... Yes Tim, you are right! ... But I am using an array, ... you have an opportunity to replace that with an iterative loop. ... First, when you repeat code, you ...
    (microsoft.public.vc.language)
  • Re: A7N8X-e RAID 0 Stripe Size advice??
    ... Tim wrote in alt.comp.periphs.mainboard.asus and: ... >> Just for kicks I'm about to put together a 2 disc RAID 0 array on my ... >> everything I need but would anyone in here care to recommend a stripe ... to re-install in the event of a catastrophe... ...
    (alt.comp.periphs.mainboard.asus)
  • RE: Class Property as an Array
    ... ReDim blnArrayAs Boolean ... This example creates a dynamic array, which you seem you be able ... Tim ...
    (microsoft.public.vb.general.discussion)
  • Re: Load image from DB into PictureBox control
    ... >> If the image is in a Byte array then you could create a MemoryStream ... >> Tim Wilson ... >>> King Wilder ...
    (microsoft.public.dotnet.framework.windowsforms)