Jump to content

Chris Mathews

Members
  • Content Count

    5
  • Joined

  • Last visited

Everything posted by Chris Mathews

  1. Chris Mathews

    More Powerful Grid

    another tms grid: TMS FNC Data Grid Take your application to the next level with data visualization features such as filtering, sorting and multi-column, multi-level grouping. Use the easy data binding functionality supporting master-detail relationships as well as the ability to export to PDF, HTML and XLS.
  2. I've had success running python scripts and returning class properties to Delphi. I'm struggling with where to start to return a python tuple (containing an OrderedDict and a string to a Delphi collections. The module is usaddress and I'm using as follows: script from collections import OrderedDict import usaddress od = OrderedDict() od = usaddress.tag('5757 Woodway Ave APT 150 WEST PALM BEACH FL 37205 ') print(od) print(type(od)) first = od[0] print(first) print(type(first)) second = od[1] print(second) print(type(second)) and the output is this: (OrderedDict({'AddressNumber': '5757', 'StreetName': 'Woodway', 'StreetNamePostType': 'Ave', 'OccupancyType': 'APT', 'OccupancyIdentifier': '150', 'PlaceName': 'WEST PALM BEACH', 'StateName': 'FL', 'ZipCode': '37205'}), 'Street Address') <class 'tuple'> OrderedDict({'AddressNumber': '5757', 'StreetName': 'Woodway', 'StreetNamePostType': 'Ave', 'OccupancyType': 'APT', 'OccupancyIdentifier': '150', 'PlaceName': 'WEST PALM BEACH', 'StateName': 'FL', 'ZipCode': '37205'}) <class 'collections.OrderedDict'> Street Address <class 'str'> Guiding me to a starting point would be appreciated.
  3. Chris Mathews

    Parsing a python collection into a delphi collection

    Followup Question: Why am I getting an Incompatible type error integer and string on var AddressNumber := MainModule.od[0]['AddressNumber'];
  4. Chris Mathews

    Parsing a python collection into a delphi collection

    Thanks. PS I'd love for you to write a book on P4D. I'll pre-order.
  5. Chris Mathews

    MSBuild error when switching platforms and try to compile

    Same here with 11.2 update 1. Have to shutdown the IDE and restart.
×