Recent

Author Topic: LIKE operator for Pascal  (Read 15522 times)

Thaddy

  • Hero Member
  • *****
  • Posts: 14197
  • Probably until I exterminate Putin.
Re: LIKE operator for Pascal
« Reply #30 on: September 21, 2017, 02:17:00 pm »
That's obvious and we all know how to do that! You suggested you had a patch that introduced proper ++. You didn't.
Specialize a type, not a var.

bytebites

  • Hero Member
  • *****
  • Posts: 632
Re: LIKE operator for Pascal
« Reply #31 on: September 21, 2017, 02:34:22 pm »
Really? Where?

Bazzao

  • Full Member
  • ***
  • Posts: 178
  • Pies are squared.
Re: LIKE operator for Pascal
« Reply #32 on: September 22, 2017, 02:06:11 am »
Ok Thaddy & bytebites, please calm down.

This is MY topic.

All this discussion and code snippets is very useful, but it all comes down to the fact that others out there, members of the forum or not, beginners or not, will grab published code and expect it to run and be frustrated by compilation errors generated from unsupported code. And it is too easy to forget to replace unsupported code by supported prior to posting.

Please continue, because I am learning ...

My 2c.

Bazza
Bazza

Lazarus 2.0.10; FPC 3.2.0; SVN Revision 63526; x86_64-win64-win32/win64
Windows 10.

bytebites

  • Hero Member
  • *****
  • Posts: 632
Re: LIKE operator for Pascal
« Reply #33 on: September 22, 2017, 08:16:47 am »
Thanks for your patience.

C-style inc-patch.

Bazzao

  • Full Member
  • ***
  • Posts: 178
  • Pies are squared.
Re: LIKE operator for Pascal
« Reply #34 on: September 25, 2017, 04:35:44 am »
I have yet to look at your attachment, because I have been busy finalising the match.

Yes I stuffed up a bit trying to add the Update mask, but found out why.

I ran my DMS conversion (transported from VBA) to pascal, and for full earth coordinates, using about 16 matches per co-ordinate, the mask2 variation worked ...

Quote
TestUntilKeypressed:
11388719 tests.
This is under development. C:\>

At 11388719 * <=> 16 tests you don't want to keep creating and destroying.

Anyway I now have single formatted (N 23 34' 56") and single unformatted (23 34 56) to test.

B
Bazza

Lazarus 2.0.10; FPC 3.2.0; SVN Revision 63526; x86_64-win64-win32/win64
Windows 10.

bytebites

  • Hero Member
  • *****
  • Posts: 632
Re: LIKE operator for Pascal
« Reply #35 on: September 25, 2017, 07:47:39 am »
Code: Pascal  [Select][+][-]
  1. var
  2.   masks :array [1..16] of tmask;


 

TinyPortal © 2005-2018