fpc-pascal · 2023-01
- aligned?2
What does the fpc built-in function aligned? For example in FloatToStrFIntl: Str(Double(Extended(Aligned(Value))):precision+7, Result); Mattias
- star operator on enum types2
I found in a fpc program a statement sort of: Type TSomeType = (a,b,c) TaType = set of TSometype var setA,setB: TaType; ..... *if setA * setB = [] then…
- FpcGui, MSEGui0
Have you worked with both? Both are pure FreePascal GUIs, not depending of ant external library. What are the differences? Which one do you think is more mature, …
- A rather good blog post on Object Pascal that I thought you folks might enjoy7
Why Object Pascal is More Than Meets the Eye: Exploring the Power and Versatility of Delphi and FreePascal…
- Why in {$mode delphi} it works and in {$mode objfpc} it doesn't?7
I stumbled into a problem I don't understand. I'm developing a little program for an ftp client. In order to connect to the site I need the site address from the site…
- TSQLQuery doesn't work with a lookup field if it is a memo (text)1
I just found out that if I try to create a lookup field that points to a memo field (in postgresql the field is defined as text), it bombs out with "list index (-2) out…
- Dynamic array question2
is there a way how to have dynamic array "inside" another dynamic array? program project1; {$mode objfpc}{$H+} uses {$IFDEF UNIX} {$ENDIF} Classes,…
- Open array in object constructor gives error14
Why is using the open array parameter illegal using the Object type? ======================== {$mode objfpc} program test; type TMyObject = object constructor…
- TFPHttpClient & TFPHttpServer4
I would like to write some code where a TFPHttpClient component sends a minimal json payload to a TFPHttpServer that (reads the payload). The working of the…
- Local Type T and generics2
I have local type TTempItem, i.e. declared inside method of a generic class. When I write: type TTempItem = record Item: T; Empty:…
- Programming Pascal using an AI Chatbot13
The following page hosts a series of Pascal programming questions I asked an AI chatbot system while testing its abilities. https://www.getlazarus.org/aichatbot
- For Loop with QWord1
I'm wondering why I can't have the following: Var I: QWord; Begin For I := 1 To N Do . It generates an error: Error: Ordinal expression expected If I change it to…
