Your regex is awful :)
Why not to write it as follows (ruff rewrite):
IF cells[2, dateTime] = m|((\d\d)/){2}(\d{2,4})\s.*| THEN BEGIN
Anyway, I'm not sure how good idea it will be to have it part of the syntax.
Happy Hannuka everyone :P
Ido
On Mon, Dec 22, 2008 at 7:56 PM, Mark Morgan Lloyd
Joost van der Sluis wrote:
> Op zondag 21-12-2008 om 17:29 uur [tijdzone +], schreef Andrea:
>
> You tried to re-build the rpm, there's no documentation about that.
> Maybe it's easier to build then ide manually. Extract the source, copy
> the libgdb-files, go to the ide directory and do a 'ma
Mark Morgan Lloyd wrote:
IF cells[2, dateTime] = /(\d\d)\/(\d\d)\/((\d\d)?\d\d)\s.*/i THEN BEGIN
Not only do I have no idea what the above code does, I have no desire to
find out! Talk about cryptic.
Jeff.
--
I haven't smoked for 2 years, 4 months and 5 days, saving $3,864.50 and
not smoki
Henry Vermaak wrote:
2008/12/22 Mark Morgan Lloyd :
.>8
IF cells[2, dateTime] = /(\d\d)\/(\d\d)\/((\d\d)?\d\d)\s.*/i THEN BEGIN
i thought for a moment you were trying to draw some nice ascii art :)
"Leaning toothpick syndrome" :-)
--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT.
2008/12/22 Mark Morgan Lloyd :
> .>8
> IF cells[2, dateTime] = /(\d\d)\/(\d\d)\/((\d\d)?\d\d)\s.*/i THEN BEGIN
i thought for a moment you were trying to draw some nice ascii art :)
henry
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.or
In our previous episode, Mark Morgan Lloyd said:
> What /I/ miss is Perl's pattern matching, and I miss it to the extent
> that in some of my own scripting stuff I've implemented it myself:
>
> IF cells[2, dateTime] = /(\d\d)\/(\d\d)\/((\d\d)?\d\d)\s.*/i THEN BEGIN
>cells[6, 1]:= /1/ + ordina
Joost van der Sluis wrote:
> Op zondag 21-12-2008 om 17:29 uur [tijdzone +], schreef Andrea:
>
>> I've tried to use the debugger in FP 2.2.2 and I got this error
>
>> "No debugger support available"
>
> I see below that you used the Fedora/RHEL fpc-rpm's?
Yes.
I amended the spec to copy the
Marco van de Voort wrote:
> In our previous episode, Andrea said:
>
>> I can see that all non standard ASCII character are missing (e.g. stressed
>> vowel). Other times the windows appear diagonal (like the length of the
>> line was wrong).
>
> Sounds like ascii output is interpreted as something
Frank de Groot (Rent-a-Geek) wrote:
What /I/ miss is Perl's pattern matching, and I miss it to the extent
that in some of my own scripting stuff I've implemented it myself:
There are RexExp units available..
I know- you don't really think I've written the code from scratch do
you? The issue
There are RexExp units available..
What /I/ miss is Perl's pattern matching, and I miss it to the extent
that in some of my own scripting stuff I've implemented it myself:
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freep
There seem to be a number of people currently making outrageous
suggestions about missing features or how FPC could best be repackaged
and promoted, so since it's the season of good will I trust that folk
will tolerate this one from me.
There's been a recent thread in fpc-other on second langu
I would also add that it's wise to employ overloaded commands for each
data structure that contains dynamic arrays. There may be nested
dynamic arrays, and Delphi at least would not respect copying over
nested data structures that contained Dynamic Arrays, so I write Copy,
Empty, SetSize routines
iirc it's windows that does this. If the winapi encounters characters in
a string for a messagebox it doesn't understand, it drops the whole
string. There's nothing Lazarus can do about it.
It's not the MessageBox function that drops strings (they always
appear). It's the LCL that does this (as
Jonas Maebe schrieb:
One important different to keep in mind between dynamic arrays and
regular arrays (including those defined using schema types): dynamic
arrays are reference counted and copies are always shallow copies. This
means that in this code:
var
a, b: array of real;
begin
se
Mattias Gärtner wrote:
fix <> workaround ;)
[GRIN] At least nobody's shot me down in flames telling me that Pascal
/has/ to work that way :-)
Just found somewhere that I was applying trim() to a character variable-
not quite sure I meant to do that and FPC scores over Delphi in picking
it
Zitat von Mark Morgan Lloyd :
> dhkblas...@zeelandnet.nl wrote:
>
> >> FPC 2.2.0 is giving me duplicate identifier errors for "sort" and
> >> "strings" above.
>
> > Add {$mode delphi} to the top of your unit. ObjFPC mode is more strict.
>
> Thanks, I think that fixes it although I'm still working
dhkblas...@zeelandnet.nl wrote:
FPC 2.2.0 is giving me duplicate identifier errors for "sort" and
"strings" above.
Add {$mode delphi} to the top of your unit. ObjFPC mode is more strict.
Thanks, I think that fixes it although I'm still working through the
affected unit.
I presume I'm cor
> I've got a class that looks in part like this:
>
> TTextStore= CLASS(TStringList)
> PRIVATE
>PROCEDURE NeverSort(sort: BOOLEAN);
> PUBLIC
>FUNCTION HereDocument(CONST name: STRING; VAR strings:
> TStringList): BOOLEAN;
>PRO
On 15 Dec 2008, at 21:29, Kevan Hashemi wrote:
Dear FPC,
fancy:=new(fancy_type); // or something similar, I usually use
GetMem not New
SetLength(fancy.first, 10, 20);
SetLength(fancy.second, 10, 20);
SetLength(fancy.third, 300);
Nice. I see how it works. Thank you very much (Felipe and Fl
I've got a class that looks in part like this:
TTextStore= CLASS(TStringList)
PRIVATE
PROCEDURE NeverSort(sort: BOOLEAN);
PUBLIC
FUNCTION HereDocument(CONST name: STRING; VAR strings:
TStringList): BOOLEAN;
PROCEDURE Sort; OVERRI
Op maandag 22-12-2008 om 10:08 uur [tijdzone +0100], schreef Jürgen
Hestermann:
>
> 99% of my problems with this issue would have been avoided if not the
> whole string is dropped in case that a string is not conform to
> UFT-8. That doesn't make any sense. If it's such an error why not
> raise
>
Op zondag 21-12-2008 om 17:29 uur [tijdzone +], schreef Andrea:
> I've tried to use the debugger in FP 2.2.2 and I got this error
> "No debugger support available"
I see below that you used the Fedora/RHEL fpc-rpm's?
> The I read online and found that I need to get libgdb.a from a build of
Jürgen Hestermann schreef:
Can we expect some improvements (patches) from you soon.
I would like to but as I am new with Lazarus my knowledge about it is
not sufficient to give advices (as you can see ;-)). More of such
pitfalls may lurk somewhere which I don't know about so I cannot give
adv
Can we expect some improvements (patches) from
you soon.
I would like to but as I am new with Lazarus my knowledge about it is
not sufficient to give advices (as you can see ;-)). More of such
pitfalls may lurk somewhere which I don't know about so I cannot give
advices about it.
people who
24 matches
Mail list logo