> On
> http://www.freepascal.org/~michael/articles/
> you can find some articles that explain the workings of fcl-web.
> See web1, web2.
WOW! You never said you did document for many things we don't know how to
use properly yet. Must be put somewhere everyone else can see, Lazarus wiki
would be
El 09/06/2016 a las 8:04, Sven Barth escribió:
{$DEFINE THISDONTCOMPILE}
TConstRecord: TFirstRecord = (
{$IFDEF THISDONTCOMPILE}
Ident: TSomePcharArray[1]
{$ELSE}
Ident: @TSomePcharArray[1]
{$ENDIF}
);
One can only use untyped constants to initialize other constants or
varia
Am 09.06.2016 14:30 schrieb "José Mejuto" :
>
> El 09/06/2016 a las 8:04, Sven Barth escribió:
>
>>> {$DEFINE THISDONTCOMPILE}
>>> TConstRecord: TFirstRecord = (
>>> {$IFDEF THISDONTCOMPILE}
>>> Ident: TSomePcharArray[1]
>>> {$ELSE}
>>> Ident: @TSomePcharArray[1]
>>> {$ENDIF}
>>>
Hello,
I've got following declaration:
...
{$modeswitch typehelpers}
interface
uses
Classes, SysUtils;
type
TBuffer = array of Single;
{ TBufferHelper }
TBufferHelper = type helper for TBuffer
procedure Clear;
end;
...
var aBuffer: TBuffer;
...
And I can do:
aBuffer[3]:=5;
a
Am 09.06.2016 17:57 schrieb "Vojtěch Čihák" :
>
> Hello,
>
> I've got following declaration:
> ...
> {$modeswitch typehelpers}
>
> interface
>
> uses
> Classes, SysUtils;
>
> type
> TBuffer = array of Single;
>
> { TBufferHelper }
> TBufferHelper = type helper for TBuffer
> procedure Cl
Am 2016-06-09 um 20:18 schrieb Sven Barth:
> Am 09.06.2016 17:57 schrieb "Vojtech Cihák" :
> > aBuffer.Clear;
> > Is it possible to do this without helper?
>
> You can always set the array to Nil
IMO SetLength(aBuffer,0) would the most natural way to clear the array.
_
Am 10.06.2016 07:36 schrieb "Jürgen Hestermann" :
>
> Am 2016-06-09 um 20:18 schrieb Sven Barth:
>
> > Am 09.06.2016 17:57 schrieb "Vojtech Cihák" :
> > > aBuffer.Clear;
> > > Is it possible to do this without helper?
> >
> > You can always set the array to Nil
>
> IMO SetLength(aBuffer,0) would th