Jump to content

Oliver Morsch

uniGUI Subscriber
  • Posts

    356
  • Joined

  • Last visited

  • Days Won

    18

Posts posted by Oliver Morsch

  1. Why not just create Delphi classes

     

    TInvDetail = class

      public

        seqNo: Integer;

        productCode: string;

        description: string;

        qty: Integer;

        price: Double;

      end;

     

    TInvoice = class
      public
        invNo: string;
        invDate: TDateTime;
        customer: string;
        invAmt: Double;
        invDetails: TArray<TInvDetail>;
      end;

     

     

    And then use

     

    var

    Invoice: TInvoice;

    begin

    Invoice := TJson.JsonToObject<TInvoice>(...)

     

    ???

  2. see https://docs.devart.com/sdac/faq.htm:

    Are the SDAC connection components thread-safe?

    Yes, SDAC is thread-safe but there is a restriction. But the same TCustomMSConnection object descendant cannot be used in several threads. So if you have a multithreaded application, you should have a TCustomMSConnection object descendant for each thread that uses SDAC

×
×
  • Create New...