Jump to content

Lajos Juhász

Members
  • Content Count

    828
  • Joined

  • Last visited

  • Days Won

    11

Posts posted by Lajos Juhász


  1. 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.


  2. 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.)

     

     


  3. 38 minutes ago, Remy Lebeau said:

    You would need to call GetVariantManager() first to initialize the record before you can use it, eg:

    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.


  4. 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;
      }

  5. 7 hours ago, Ian Branch said:

    Alternatively, how should the above be now written?

    From the source:

     

    faVolumeID    = $00000008 platform deprecated;  // not used in Win32

     

    Looks like it was removed from windows.


  6. 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.


  7. 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).


  8. 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.


  9. 2 minutes ago, PeterBelow said:

    in Tbasicdm.DatamoduleCreate, is there really an underscore in the line after begin? That would be the source of the first error. The second may be a false positive, error insight is easily confused by conditional compilation...

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

     

    Quote

    Hello.

    Delphi 11.2

    I have 2 "errors" that show in this page (see errors.jpg).

    Yet the project builds and runs ok. 

     

×