Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Delphi 10.4.2 FMX How to put address in String into TCivicAddress?

What is the way to initialize TCivicAddress and put address info into it? I even tried to set everything separately, it still encounter errors.

var cAddr: TCivicAddress;
cAddr.FeatureName := '10';
cAddr.Thoroughfare := 'Xxxxx Xxxxx Xxx';
cAddr.SubLocality := 'Xxxxxx Xxxxx Xxx';
cAddr.PostalCode := '12345';
cAddr.Locality := 'Xxxxxx';
cAddr.AdminArea := 'Xxxxxxx';
cAddr.CountryName := 'Xxxxxxx';

Is it not possible to create TCivicAddress from string? I can’t seem to find documentation online. Thanks in advanced.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

TCivicAddress is a class that need to be instanciated before accessing any member.

cAddr := TCivicAddress.Create;
cAddr.FeatureName := '10';
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading