Am 10.02.2012 04:41, schrieb Thomas Young:
Forgive me for being in wide-eyed wonder but my goodness this is more
than a nice feature. Brilliant.
I feel like a child who has played with toy blocks all these years and
who now received keys to a ferrari.
You might get this feeling for often when y
Forgive me for being in wide-eyed wonder but my goodness this is more than a
nice feature. Brilliant.
I feel like a child who has played with toy blocks all these years and who now
received keys to a ferrari.
Thomas Young
cell: 330-256-7064
mobile email: tygraph...@me.com
On Feb 9, 2012, at 1
Thank you.
Thomas Young
cell: 330-256-7064
mobile email: tygraph...@me.com
On Feb 9, 2012, at 9:41 PM, Reimar Grabowski wrote:
> On Thu, 09 Feb 2012 19:34:06 -0500
> Thomas Young wrote:
>
>> Howard are you saying FPC has dynamic arrays? Is it documented?
> http://wiki.freepascal.org/DYNAMIC_
On Thu, 09 Feb 2012 19:34:06 -0500
Thomas Young wrote:
> Howard are you saying FPC has dynamic arrays? Is it documented?
http://wiki.freepascal.org/DYNAMIC_ARRAY
R.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org
Howard are you saying FPC has dynamic arrays? Is it documented? I've been
reading the documentation page by page and I've not seen any mention of it. I'm
far from completing the reading by the way.
If dynamic arrays are part of FPC I couldn't be more delighted. I don't
completely understand wha
That`s a nice idea.
Em 09/02/2012, às 16:21, Ludo Brands escreveu:
>
>
>
> Thanks, but that is not my expected answer, my ask about "dynamic array of
> record" and without define a variable to pass it by params, for example i can
> pass the params for array of string like this
>
> func2(['
On Thu, Feb 9, 2012 at 8:21 PM, Ludo Brands wrote:
> **
>
>
>
>
> Thanks, but that is not my expected answer, my ask about "dynamic array of
> record" and without define a variable to pass it by params, for example i
> can pass the params for array of string like this
>
> func2(['t1', 't1']); thi
On Thu, Feb 9, 2012 at 8:10 PM, Jonas Maebe wrote:
> Declaring record constants inline in the code is not supported by FPC
> (regardless of whether it's for an array parameter, an assignment or
> something else). There are no plans to add support for it either.
Ouch :P , bad news, but it save my
Thanks, but that is not my expected answer, my ask about "dynamic array of
record" and without define a variable to pass it by params, for example i
can pass the params for array of string like this
func2(['t1', 't1']); this work, but i want to extend the params info?
You can use a small h
On 09 Feb 2012, at 19:07, Zaher Dirkey wrote:
> Thanks, but that is not my expected answer, my ask about "dynamic array of
> record" and without define a variable to pass it by params, for example i
> can pass the params for array of string like this
>
> func2(['t1', 't1']); this work, but i wan
On 09/2/12 5:17, Zaher Dirkey wrote:
Hi,
TInfo=record
s: string;
i: integer;
end;
function func1(a: array of TInfo);
how can i pass the parameter to that function?
You have to declare the parameter type independently of the function
declaration. You can also do it without declaring an
But they couldn't pass like this?:
>> This is how I would do that. There may be a better way.
>>
>>> TInfo=record
>>> s: string;
>>> i: integer;
>>> end;
>>>
>> ATInfo = array[1..100] of TInfo;
>>
>> Var
>> A :ATInfo;
>>
>>> function func1(A);
Simply passing the array var if he had declare
On Thu, Feb 9, 2012 at 7:53 PM, Thomas Young wrote:
> This is how I would do that. There may be a better way.
>
> TInfo=record
>
> s: string;
>
> i: integer;
>
> end;
>
>
> ATInfo = array[1..100] of TInfo;
> ATInfoPtr = ^ATInfo;
>
> Var
> A:ATInfoPtr;
>
> function func1(a:ATInfoPtr);
>
>
> Thom
New(A);
>> function func1(a:ATInfoPtr);
var
Name:string;
N:integer;
begin
N:= 1;
Name:= a^[n].s;
end;
Thomas Young
330-256-7064
www.tygraphics.net
Sent from my iPhone
On Feb 9, 2012, at 12:53 PM, Thomas Young wrote:
> This is how I wo
Thanks.
Em 09/02/2012, às 15:53, Thomas Young escreveu:
> This is how I would do that. There may be a better way.
>
>> TInfo=record
>> s: string;
>> i: integer;
>> end;
>>
> ATInfo = array[1..100] of TInfo;
> ATInfoPtr = ^ATInfo;
>
> Var
> A:ATInfoPtr;
>
>> function func1(a:ATInfoPtr);
>
This is how I would do that. There may be a better way.
> TInfo=record
> s: string;
> i: integer;
> end;
>
ATInfo = array[1..100] of TInfo;
ATInfoPtr = ^ATInfo;
Var
A:ATInfoPtr;
> function func1(a:ATInfoPtr);
Thomas Young
330-256-7064
www.tygraphics.net
Sent from my iPhone
On Feb 9, 2012,
Could you give an example? If not bother much.
Em 09/02/2012, às 15:45, Thomas Young escreveu:
> Define a pointer type for TInfo then pass the pointer to the function.
> Dereference the pointer within the function to access the array.
>
> Thomas Young
> 330-256-7064
> www.tygraphics.net
> Sent
Define a pointer type for TInfo then pass the pointer to the function.
Dereference the pointer within the function to access the array.
Thomas Young
330-256-7064
www.tygraphics.net
Sent from my iPhone
On Feb 9, 2012, at 12:17 PM, Zaher Dirkey wrote:
> Hi,
>
> TInfo=record
> s: string;
>
That`s a question of mine too.
Em 09/02/2012, às 15:17, Zaher Dirkey escreveu:
> Hi,
>
> TInfo=record
> s: string;
> i: integer;
> end;
>
> function func1(a: array of TInfo);
>
> how can i pass the parameter to that function?
>
> for example, i cant do that?
>
> func1([('test1', 1), ('
Hi,
TInfo=record
s: string;
i: integer;
end;
function func1(a: array of TInfo);
how can i pass the parameter to that function?
for example, i cant do that?
func1([('test1', 1), ('test2', 2)]);
--
I am using last reversion of Lazarus, FPC 2.6
Thanks in advance
Zaher Dirkey
_
20 matches
Mail list logo