Interger Array Question
From: anon (an_at_o.n)
Date: 12/14/03
- Next message: anon: "Re: Key down and Key up with A-Z keys"
- Previous message: Duncan McNiven: "Re: How do i proceed to write a service ?"
- Next in thread: Duncan McNiven: "Re: Interger Array Question"
- Reply: Duncan McNiven: "Re: Interger Array Question"
- Reply: Tom de Neef: "Re: Interger Array Question"
- Reply: Maarten Wiltink: "Re: Interger Array Question"
- Reply: Jud McCranie: "Re: Interger Array Question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 14 Dec 2003 17:20:42 GMT
I have an Integer array size 12 and I have twelve integer variables
IntArray[1] := IntArray1
IntArray[2] := IntArray2
IntArray[3] := IntArray3
IntArray[4] := IntArray4
IntArray[5] := IntArray5
IntArray[6] := IntArray6
IntArray[7] := IntArray7
IntArray[8] := IntArray8
IntArray[9] := IntArray9
IntArray[10] := IntArray10
IntArray[11] := IntArray11
IntArray[12] := IntArray12
I am assigning values like so:
TempInt := 1;
IntArray[TempInt] := IntArray[TempInt] + 1;
If I call IntArray[1] I get the value that I want, 1
If I call IntArray1 I get 0, and this never changes.
Would someone mind telling me what's going on and if the values of
IntArray1...IntArray12 never change, why do I need "IntArray[1] := IntArray1
... IntArray[12] := IntArray12"? With out them the code does not seem to
work.
- Next message: anon: "Re: Key down and Key up with A-Z keys"
- Previous message: Duncan McNiven: "Re: How do i proceed to write a service ?"
- Next in thread: Duncan McNiven: "Re: Interger Array Question"
- Reply: Duncan McNiven: "Re: Interger Array Question"
- Reply: Tom de Neef: "Re: Interger Array Question"
- Reply: Maarten Wiltink: "Re: Interger Array Question"
- Reply: Jud McCranie: "Re: Interger Array Question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]