Delphi Initialize Array
Delphi array initialization. T-mobile apn 4g lte. A side effect is that the syntax for a set of integers is the same as the syntax for an open array of integers. I think Delphi uses.
On the following URL,, I found some different syntax to initialize an array. Examples there. Var c1: array[1.10] of char:= '123456'; int2: array[1.100] of integer:= [50 of 1, 50 of 2]; Tried those, but didn't seem to to work. Is a loop the only way to initialize all the values in an array other than Values: array[1.2] of integer = (0,0); In the program I am working on, Values will be an array of 128 integers and I would like to initialize them to 0. Right now I just using: for InitialLoop:= 1 to 128 do Values[InitialLoop]:=0; _______________________________________________ fpc-pascal maillist. Hello, Francisco! Wednesday, March 18, 2009, 2:50:21 AM, you wrote: > Is a loop the only way to initialize all the values in an array other than > Values: array[1.2] of integer = (0,0); > In the program I am working on, Values will be an array of 128 integers and > I would like to initialize them to 0.
C# Initialize Array
> Right now I just using: > for InitialLoop:= 1 to 128 do > Values[InitialLoop]:=0; As far as I know, global variables are initialised with zeros when an application starts. Rig veda pdf english. But to ensure your array is filled with zeros you can use FillChar: FillChar(Values,SizeOf(Values),0) -- Best regards, Fantomas _______________________________________________ fpc-pascal maillist. > On the following URL, >, > I found some different syntax to initialize an array.