Jump to content

Die Holländer

Members
  • Content Count

    293
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by Die Holländer

  1. Die Holländer

    Delphi Mystery: Edit vs Action

    Where? In the Main form? Created with "self" in Main form? The Autocreated with Application.CreateForm in *.dpr?
  2. polywickstudio.com
  3. Die Holländer

    Using "Claude Code" with Delphi

    See how after this session Sherlock could basically craft one long prompt based on the entire session that might let the AI output the right code in one time..
  4. Die Holländer

    Using "Claude Code" with Delphi

    This statement suggests that AI knows Delphi in the same way a human programmer does by memorizing syntax, library names, and rules. But that's not how AI works. AI models don't think in terms of syntax or words. Instead, they process tokens which are small pieces of text (like parts of words, symbols, or code). During training, the model learns statistical patterns between these tokens. So, when you prompt the AI, it doesn't recall Delphi syntax. It generates output by predicting the most likely next token based on the prompt you gave and patterns it learned from training data. Just like AI doesn't understand English or Dutch, it doesn't understand Python or Delphi. It doesn't need to know the language it just needs to have seen enough examples to generate statistically likely and contextually correct output. In this way it can "inventing" non-existant functions. So, the quality of the output depends more on how much Delphi code the model has seen, how well the prompt guides the model and if the task is common or not. (Use translation if the task is more common in Python for example) Translation to Delphi might work well if the model has indeed seen enough Delphi examples and the prompt is clear. It doesn't rely on knowing syntax it relies on learned token patterns.
  5. Die Holländer

    Using "Claude Code" with Delphi

    AI models don’t “pick up” algorithms in the way humans do. They learn statistical patterns in data,not abstract algorithmic concepts. (only when explicitly trained or fine-tuned to do so) They generate outputs based on learned correlations, not by executing abstract reasoning. So, They don't "just parroting of code it gleaned elsewhere". One thing many people overlook is how important the prompt is. It’s not like using a search engine. The way you ask the question can strongly affect the quality of the answer. For example, if you want Delphi code, a smart way to prompt is: Start with Python, which the model knows well: “Write a Python function that [clearly describe the task].” Then ask to translate it to Delphi, (yes, its a language model..) “Now translate this Python function into Delphi (Object Pascal), using Delphi syntax and conventions.” Add context if needed: “Assume the Delphi code will be used in a VCL application. Use appropriate types and structures.” This helps the model give better results, even for languages like Delphi that have less training data.
  6. "The (Linux) modernization allows the company to attract more clients." Can you explain more about the use of Linux the support? Are you talking about a GUI application?
  7. Yes, what happened with her between 2001 and 2003 ??
  8. Die Holländer

    what wrong with this function?

    Because as Remy suggested these 2 other units don't have DateUtils or SysUtils in the uses? But if you change the "DaysInMonth:=" into "Result:=" does that work ?
  9. Die Holländer

    what wrong with this function?

    I didn't know that you can use a case statement where the numbers used are not in order.. 1,3,5,7,8,10,12:DaysInMonth := 31; And in the next line you use 4,6,9 and 11 while the line before ends with 12.. 4,6, 9,11:DaysInMonth := 30; What if you replace all the old Pascal style return vars DaysInMonth into Result like: 1,3,5,7,8,10,12:Result := 31;
  10. Die Holländer

    BDE

    delphipraxis.net: dbe-install-for-delphi borland-database-engine-bde
  11. Die Holländer

    Youtube comments - how are you retreaving them

    So, is your parsing "slow" or the fetching the API data from Youtube? How did you do the parsing? By running through the Memo of your screenshot?
  12. Die Holländer

    Youtube comments - how are you retreaving them

    Use the Youtube API. uses System.Net.HttpClient, System.JSON; procedure GetYouTubeComments(const VideoID, APIKey: string); var Client: TNetHTTPClient; Response: string; JSON: TJSONObject; begin Client := TNetHTTPClient.Create(nil); try Response := Client.Get( Format('https://www.googleapis.com/youtube/v3/commentThreads?part=snippet&videoId=%s&key=%s', [VideoID, APIKey]) ).ContentAsString; JSON := TJSONObject.ParseJSONValue(Response) as TJSONObject; // Parse JSON to extract comments finally Client.Free; end; end;
  13. The special guest forgot to mention one important development language on his site.. Bito: Supported programming languages Ah.. AI code review agent supported programming languages and tools
  14. Die Holländer

    addng a field to an existing file

    Try after the add BudSys_DB.FieldDefs[4].CreateField(BudSys_DB); or Private: AmountField : TFloatField; Implementation: AmountField := TFloatField.Create(BudSys_DB); AmountField .FieldName := 'Amount'; AmountField .Calculated := True; AmountField .DataSet := BudSys_DB; AmountField .Name := BudSys_DB.Name + AmountField .FieldName; BudSys_DB.FieldDefs.Add('Amount',ftFloat, 0); Destroy: AmountField.Free;
  15. Die Holländer

    Experiences with D2Bridge Framework

    Many VCL applications have been developed over the years with direct database access, which has become increasingly problematic in modern software environments. As a result, developers often feel forced to transition to web-based solutions, such as sending JSON over the internet to abstract away direct database access (e.g., for login functionality). However, this shift presents significant challenges. One major hurdle is the need to create endpoints for the countless SQL queries accumulated over time, while also transforming the rich and responsive VCL GUI into web pages. Although modern frameworks offer solutions for this transition, the process of converting database-driven VCL applications remains highly resource-intensive. These frameworks are particularly effective when building applications from scratch. But for developers who prefer to maintain their existing VCL applications and avoid going fully web-based, the question arises: is there a way to address the database access issue without a complete overhaul? Could a solution exist at the database driver level—a kind of bridge between the database server and the client driver (e.g., FireDAC)—that eliminates the need to convert data into formats like JSON and then back into VCL controls or custom DataObjects?
  16. Die Holländer

    Stringgrid cell value changed arbitrarely

    Very difficult to understand your question.. You talk about a stringgrid but in the code you posted the grid isn't mentioned. You talk about a value? What value? All the valueS (more values) in the rows of the grid?
  17. Maybe in combination with: bds.exe /ProductInfo:Trial - returns True/False if the product is a Trial version.
  18. Enterprise returns Enterprise.. So "Personal" seems the Community Edition.
  19. What does the professional edition say in the "Detail" properties of the bds.exe? Also “Personal”? (or Professional)
  20. What error do you get when you compile something with dcc32.exe from the Community Edition. Can't you catch this error and make you decision based on that?
  21. There is this small component I use for ages (CEVersionInfo) that takes the version info from the Delphi IDE. (Menu-Projects-Project Options-Version Info) In the IDE I put the Delphi version name into the "Comments" field and in the program source you can use it just like: "myEdit.Text:=CEVersionInfo.Comments" I've searched the web for the component but only saw some sites where I didn't dare to click to.. I'm willing to publish the source because there is no copyright involved and it is quite small code. It can take the following info fields: FCompanyname :='<info not available>'; FFileDescription :='<info not available>'; FFileVersion :='<info not available>'; FInternalname :='<info not available>'; FLegalCopyright :='<info not available>'; FLegalTradeMarks :='<info not available>'; FOriginalFilename :='<info not available>'; FProductName :='<info not available>'; FProductVersion :='<info not available>'; FComments :='<info not available>'; FMajorVersion :='<info not available>'; FMinorVersion :='<info not available>'; FRelease :='<info not available>'; FBuild :='<info not available>';
  22. Last week I also needed such timeline component and I started with the basic Jedi Timeline component. It is a basic component but with a bit of programming and the use of an extra StringGrid for the right side, a ScrollBox (horizontal scroll) and extra Scrollbar (vertical scroll) I got all the functionality I needed. It has an imagelist property to display images in the timeline. delphi-jedi.org TJvTimeLine
  23. Die Holländer

    Alternative for RDP solution

    Could you clarify what you mean by "cheapest way" and can you tell more about the cost and your environment? Their website doesn’t provide any information about pricing, which I believe could negatively impact their sales. Potential customers are discouraged when they have to contact a company just to get basic cost information. It would be helpful if they included some example use cases along with the associated costs. For example, if I already have a cloud-based database solution (e.g., MSSQL/Azure File storage/Office365) with 30 users and several Delphi applications, what would be the estimated cost of implementing a VirtualUI solution?
  24. I'm looking forward to the full story of this project. Are you going the Delphi route (webserver, webcore, UniGui, etc..) or (Java)script API - end-points - back-end HTML CSS front-end route? Bravo ! 😎🏅🏆
  25. Die Holländer

    IDE bugs

    What version of Delphi do you use? Go to the taskmanager and look to the Delphi IDE, keep refreshing the taskmanager and see if the memory of the Delphi IDE goes up all the time eating your entire memory.
×