* * *

Recent Posts

Pages: [1] 2 3 ... 10
Databases / Re: Lazarus Components x Zeos
« Last post by af0815 on Today at 06:07:54 am »
And yes Andreas, of course I’ll need lots of reports for my application. Should I change to SqlDB? Or keep Zeos?

It depends :-)
You can only write some tests and check - Test, test, test, ... and look for the caveats  8) It depends on the reportengine you use. I have no exp. in OSX.

I have been looking for a way to merge two different xml files in one file, or move a node from one to another. It is possible using DOM ? If yes, please give me an example.

ha ha ha xxx
Beginners / Re: Not recognizing the selection construct
« Last post by Salayer01 on Today at 05:36:37 am »
Show the code. I never heard that if-thens don't work.
I agree with most of this statement.
Databases / Re: Lazarus Components x Zeos
« Last post by cidadejr on Today at 03:09:46 am »
In a mixed enviroment (Lazarus/Delphi) your best choice is ZEOS. If you only support Lazarus the sqlDB are so good and stable as ZEOS. The different between SqlDB and ZEOS is not so great on the first sight, BUT important. IMHO, you cannot easy change from ZEOS to SqlDB or other direction with only redefining the Components.  The small details makes a great diffence.

Reporting COmponents in Lazarus are more centered to SqlDB not on ZEOS. If you work with report check this.

The community of ZEOS is still active and it is supported. I have seen this last year :-) Thank to the guys of ZEOS :-) The documentation found by GAN are the completest. The ZEOS Forum is still active.

But a lot of dead links are found in the internet, becaus a great knowledgebase was gone some years ago :-(


Thank you Andreas and you all. I’m very used to Zeos Lib on Delphi XE7. But besides Delphi anual renewal charge became quite expensive and I’m a OSx user and Linux lover, I’m thinking about starting a new project, that works in OSx, Linux and Windows. But some code and design I’ll try to import from my Delpho project (Zeos based).

And yes Andreas, of course I’ll need lots of reports for my application. Should I change to SqlDB? Or keep Zeos?

Thanks again!
General / Re: Array indexed by generic enum ?
« Last post by ASerge on Today at 01:39:22 am »
Cumbersome and slow. At least trunk works now... 8-) 8-) O:-)
Yes, but it works! 8-)
General / Re: Single Window Mode
« Last post by Janus on Today at 12:47:53 am »

The issue, and it is me, is how I work.
I use the file extension, it tells me what a file is.
Which is part of what I hate about newer versions of windows, they take away the things I use.

I am not a GUI programmer, it is not something I think I will ever be good at.
The floating window style of the default layout is not usable for me.
It prevents how I work, from working.
The layering and covering up, especially with the desktop showing through, simply does not work for me.
I have no trouble keeping several dozen open program windows straight, as long the task bar lists them in the order I open them in.
Grouping on the taskbar is a thought process destructive as tabs in a web browser for me.
Though I use tabs in notepad++ & VS & QT creator and many other programs, each window on the taskbar contains only one context.

All I want is to keep track of is the files in the current project, with nothing else there.
For pascal I use .pas for regular files, and .pp for units.
Until I have a mental picture to go with the rest, it is just interference or noise to me.

I do not memorize, I learn by coming to understand.
Which I do by experimenting one piece at a time.
Once I understand its pieces, I see all of it, from the inside and outside both, together.

My intention is to do what I have done for my cmdline TUI stuff.
Prep everything, init, then never call what the lazarus version of tapplication.run is.
All I want is a graphic based window I can display in.

I am moving away from VS, while I am still learning it because I prefer opensource.
I am avoiding QT creator because I do not like its license.
I prefer pascal to C/C++ because the former has structure, while the latter is more like the scattered gunk from a broken pipe.

I may eventually get where I can use the gui first coding, but not until I can understand/follow/comprehend/grok the underpinnings.

My desire is the simplest most direct visual flow, which anchoring mostly provided, except project inspector that is, it refuses to dock.
Once I can work in it the way I work in the text ide, then I can start adding pieces, in the meantime, it is simply in the way.


P.S. Has anyone ever made a unit/header for wxwidgets?
General / Re: Single Window Mode
« Last post by kupferstecher on Today at 12:01:49 am »
Why you don't want to use the lpr-extension? It just tells you that there is the entry point of the program (program section). besides that its a normal pascal file. But you may try to just save it as pas.

In the beginning I also didn't like the floating window style, but it really is flexible. The advantage that you can make use of the complete screen height for the editor window was said before. Adding some icons to the editor window's tool bar, e.g. project inspector, project settings, makes it really handy.
Especially when you don't need the object inspector, you have enough space on the left side besides the editor window to place the project inspector. But you have to arrange all windows you need on the screen in a way that each of them is accessable by a single click and not completely hidden. But that should be clear~
General / Re: HH:MM:SS to second conversion problem
« Last post by howardpc on March 20, 2018, 11:47:51 pm »
Better would be to use existing routines, rather than reinvent the wheel.

Code: Pascal  [Select]
  1. procedure TForm1.DateTimePicker1Change(Sender: TObject);
  2. begin
  3.   Label1.Caption := Format('seconds: %d', [DateTimeToTimeStamp(DateTimePicker1.Time).Time div 1000]);
  4. end;
Beginners / Re: Getting the index of a min or max value of an array
« Last post by jamie on March 20, 2018, 11:28:13 pm »
I gave you "IndexDword" just cast our integers to a DWORD when searching.

Actually, the compiler may allow this without casting..

 That will report the INDEX of where the first index is found of that value.
General / Re: Determine if project is using 3rd party units?
« Last post by Martin_fr on March 20, 2018, 11:19:13 pm »
I am not sure if a "{$Define" in one unit, can ever affect on $Ifdef in an other... You can give the compiler option -dSYNEDIT, but even then you have to understand the order in which this takes affect.

1) A DEFINE/IFDEF only works when the unit is compiled, but never when it is used.
More precise, it takes effect, when the *.pas code is translated into *.ppu/*.o files. ppo and o files do not contain ifdef, the code has already been filtered.

2) When you write "uses foo;", then foo, is first translated to a ppu, and the ppu is used.
If foo needs to know SynEdit was defined then use the commandline option -d.
I am not sure, but I think any $Define in the unit that uses foo has no effect.

3) When you use packages.
The package (your package), is compiled before the project.
Whatever happens in the project (even commandline switches) will not affect what had already happened in the package.

You have to change the commandline switches for compiling the package, then it will be recompiled. In Lazarus you can use "additions and overrides" to do this from the project.

Best solution imho
Provide 2 packages. One without SynEdit, The other with extra units providing the extras for SynEdit.

The 2nd package uses the 1st package as a normal package. No IFDEF at all.

- play with include path or any path settings at all (it will come haunting you)
- mix 2 packages into one folder (Rather put each package into a separate subfolder

This will probably take some redesign, moving stuff to base classes, adding new inheritance, whatever....
Pages: [1] 2 3 ... 10


Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus