Jump to content

Lajos Juhász

Members
  • Content Count

    986
  • Joined

  • Last visited

  • Days Won

    12

Everything posted by Lajos Juhász

  1. Lajos Juhász

    CodeInsight: Loading project [...] hanging

    I do get codeinsight loading, however almost never freeze delphi. Maybe try using process monitor to spy what code insight and / or the IDE is doing.
  2. Lajos Juhász

    Updating to newer version

    For third party and IDE settings you can use the migration tool (migrationtool.exe in the bin folder of the Delphi available for a couple of versions). As far as I know it will not download packages from getit, that could cause problems. I like to stay on the safe side and reinstall everything.
  3. Lajos Juhász

    Check duplicates in TADOQuery

    What is the metric for efficiency? You would have to iterate the query and for every record check the value in a memory structure if it's there you have duplicate if not insert into it. You can store the list in an array, list or a hash table.
  4. Lajos Juhász

    Cannot open project main form

    it's a bad idea, only English text should be saved as ANSI, otherwise you should always save as UTF-8.
  5. most probably in the part: ..... /////
  6. Lajos Juhász

    FIREDAC - Auto Generate SQL

    Hi, Usually I like to use TFDUpdateSQL to generate SQL's to update the database. Now I have a case where it would be easier to let FD generate the insert statement. However I fail to see how to customize the SQL. For some reason for Informix: function TFDPhysInfxMetadata.GetNameParts: TFDPhysNameParts; begin Result := [npCatalog, npSchema, npBaseObject, npObject]; end; In case of informix npCatalog that's makes no sense as it is the database name. npSchema is the user and that is a big no. I have a database with multiple users and rights. Is there a way to customize to generate the table name without prefixes? (When ApplyUpdates generates the insert or update statement.)
  7. Lajos Juhász

    ExtractFilePath v TDirectory.GetCurrentDirectory

    The program was started with a different current folder option, or the WIN API SetCurrentDirectory was called somewhere from the application.
  8. Lajos Juhász

    Access Violation using TVariantManager.VarToInt64

    You should check the implementation for that procedure: { ----------------------------------------------------- } { Variant manager support (obsolete) } { ----------------------------------------------------- } procedure GetVariantManager(var VarMgr: TVariantManager); begin FillChar(VarMgr, sizeof(VarMgr), 0); end; This will not fill the record properly.
  9. Lajos Juhász

    The Delphi 11.2 release thread

    Do not worry everything is going to work perfectly in the new 64 bit IDE.
  10. Lajos Juhász

    Access Violation using TVariantManager.VarToInt64

    It's obsolated do not use it (as it cannot be used). Checked even in XE5 was deprecated. I wonder why it is not removed from the source.
  11. Lajos Juhász

    how can i pull images from a website using ComboEdit

    You can inspect the source of the webpage. By clicking you execute the javascript: function getImage(clicked) { var enddate = document.getElementById("endDate").value; var endtime = document.getElementById("endTime").value; var duration = document.getElementById("duration").value; var url = "displayUpper.php?img=" + clicked + "&endDate=" + enddate + "&endTime=" + endtime + "&duration=" + duration; window.location.href = url; }
  12. I don't use fmx but https://github.com/project-jedi/jcl should work.
  13. Lajos Juhász

    FaVolumeId??

    From the source: faVolumeID = $00000008 platform deprecated; // not used in Win32 Looks like it was removed from windows.
  14. Lajos Juhász

    Defining a path variable in Seattle

    LocalExe is an environment variable. You can define it at Tools - Options - Environment Variables.
  15. Lajos Juhász

    FireDAC performances

    I am using the Infx driver (based on ODBC) and in that case the data is moved over the network using the db locale (ANSI or UTF-8) and at the FD or ODBC converted to UTF-16, when writing back unfortunately in case of ANSI database the db locale isn't used (instead the windows ANSI code page for non-unicode language and that can corrupt the data). I expect to be similair in case of MSSQL.
  16. So far I tought that the debug information is not correct with shipped FireDAC. However, today I noticed when in Delphi 11.2 I place a break point and the debugger stops the IDE will open a source from XE5 (fore FireDAC) didn't noticed for any other source. Then of course debug will be impossible. How can I fix this problem?
  17. Lajos Juhász

    Delphi 11.2 in Debug opens source from Delphi XE5????

    No, it's Enterprise.
  18. Lajos Juhász

    Delphi 11.2 in Debug opens source from Delphi XE5????

    That's correct. I have both $(BDS)\source\data and $(BDS)\source\data\firedac in the Browsing path and yet the IDE only data.db.pas can open correctly and not the FireDAC sources. In order to debug FD I have to rename the XE5 folder.
  19. Lajos Juhász

    Delphi 11.2 in Debug opens source from Delphi XE5????

    var lUser: TFDQuery; begin .... luser.open; If I set a break point on open and do a step into it will open C:\Program Files (x86)\Embarcadero\Studio\22.0\source\data\data.db.pas (correct D11.2) procedure TDataSet.Open; begin Active := True; end; Step into the Active := true; will open C:\Program Files (x86)\Embarcadero\RAD Studio\12.0\source\data\firedac\FireDAC.Comp.DataSet.pas (Delphi XE5).
  20. Lajos Juhász

    Delphi 11.2 in Debug opens source from Delphi XE5????

    I noticed only with FD sources, debugging VCL works as expected.
  21. Lajos Juhász

    Delphi 11.2 in Debug opens source from Delphi XE5????

    Now I tried no active XE5 and yet the IDE opens source from XE5 instead of Delphi 11.2 In the IDE the environment variable BDS is set correctly to c:\program files (x86)\embarcadero\studio\22.0. Even when the IDE is running from the command prompt I cannot inspect the value of this variable. Createad a new variable bds28 and changed the browsing path to use that variable the result is the same the IDE opens the source from XE5.
  22. Lajos Juhász

    Delphi 11.2 in Debug opens source from Delphi XE5????

    Could be the environment variable in the browsing path - it's in both version BDS. Will have to investigate on this one. I have to use both XE5 (production environment) and 11.2 some future developement. (Now I have to figure out why sometimes TFDQuery.ResourceOptions.cmdExecMode is ignored)
  23. Lajos Juhász

    Delphi 11.2 in Debug opens source from Delphi XE5????

    Yes, the ide will jump to files from folder C:\Program Files (x86)\Embarcadero\RAD Studio\12.0\source\data.
  24. Lajos Juhász

    Saving ProjectGroups to a new folder

    Skip the IDE and copy files in Windows, then open the project group from the new location?
  25. Lajos Juhász

    2 errors that do not exist?

    Both are false positives as the original messages says (the project builds and runs ok):
×