1,2,3,4,5.. become 3,4,8,24,63... ? 
Author Message
 1,2,3,4,5.. become 3,4,8,24,63... ?

Hello all of you..

   I was wronder if u answer me this question :)

   I want to get the value in specific number,
   ie : 1,4,30,53,68..... they are in a indentifer.

   What can I do if I want to get value like this ?

   ie: The 1st value: 1,
       The 2nd Value: 4,
       The 3rd Value: 30,
       The 4th Value: 53
            .            
                 .

(They are not the random number,is assign by programmer)
 How to call those number out ?

 In "INTEGER" , the number is according to it's value.
 ie : 1,2,3,4,5,6,7,8....
      var
      index,number : integer;
      begin
      for index := 1 to number do
        .
        .
        .
      end.
    in this case, the value of Index is 1,2,3,4,5,6,7,8,9....

    Now,I want to use 1 -> 4 -> 7-> 12 -> 45 -> 65... in index.
    What can I do ?

 My english is poor.. so...hardly to say....
 Therefore I use many example.....heeeeheeeee....



Wed, 18 Jun 1902 08:00:00 GMT  
 1,2,3,4,5.. become 3,4,8,24,63... ?



Quote:

> Hello all of you..

>    I was wronder if u answer me this question :)

>    I want to get the value in specific number,
>    ie : 1,4,30,53,68..... they are in a indentifer.

>    What can I do if I want to get value like this ?

>    ie: The 1st value: 1,
>        The 2nd Value: 4,
>        The 3rd Value: 30,
>        The 4th Value: 53

Adam,

You need to study what are called ARRAYs in Pascal.
In Turbo Pascal or Delphi you can specify:

 CONST
    Lookup:  ARRAY[1..5] OF INTEGER = (1,4,30,53,68);

Then, Lookup[1] is 1,
         Lookup[2] is 4,
         Lookup[3] is 30,
         Lookup[4] is 68

efg
_____________________________________

MedTech Research Corporation
Lenexa, KS  66219  USA                    



Wed, 18 Jun 1902 08:00:00 GMT  
 1,2,3,4,5.. become 3,4,8,24,63... ?

"I was wronder if u answer me this question :)
I want to get the value in specific number,
ie : 1,4,30,53,68..... they are in a indentifer.

What can I do if I want to get value like this ?

   ie: The 1st value: 1,
       The 2nd Value: 4,
       The 3rd Value: 30,
       The 4th Value: 53
            .             "

Which series do you want to produce?  The one in your message
header is different from this one and the other examples you
gave.  Are you trying to figure out how someone else did this for
a specific series, or do you want to make a generator like this
of your own?

--
Will Dwinnell
Commercial Intelligence



Wed, 18 Jun 1902 08:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. 15, 16, 24, 32bit RGB-Modes in BP 7.0

2. Req: library to load and display 8/24 bit TIFF files

3. 24 bit BMP Files

4. 24 bit PCX images

5. clpb Mini-FAQ V1.24 - Essential Reading for New Subscribers

6. clpb Mini-FAQ V1.24 - Essential Reading for New Subscribers

7. Displaying calculated time values greater then 24 hors

8. Will give away code for VESA 24/32-bit Putpixel routine

9. 24-bit color to 256 color's source

10. Need help to modify code for 24 bit VESA

11. DBViewer becomes FreeWare

12. Sybase 11 NT server becoming unresponsive

 

 
Powered by phpBB® Forum Software