Avatar billede juzas Mester
25. februar 2024 - 07:13 Der er 4 kommentarer

Delphi - Parser JSON Fil

Hej. :)
Jeg har hentet en JSON vil fra min webshop på en vare som bliver vist i en "Memo". Jeg vil gerne udpluk teksten "src" som er linket til varens billede under "images" til en edit1. Kan nogle hjælpe :)
Filen vises her:

[
    {
        "id": 736,
        "name": "Photosensitive Resistance LED Sensor",
        "slug": "photosensitive-resistance-led-sensor",
        "permalink": "https:\/\/ardustore.dk\/produkt\/photosensitive-resistance-led-sensor",
        "date_created": "2018-04-27T11:11:06",
        "date_created_gmt": "2018-04-27T09:11:06",
        "date_modified": "2024-02-19T11:40:23",
        "date_modified_gmt": "2024-02-19T10:40:23",
        "type": "simple",
        "status": "publish",
        "featured": false,
        "catalog_visibility": "visible",
        "description": "<p>Photosensitive Resistance LED Sensor, er en sensor som måler lysstyrken\/lux.<\/p>\n<h3>Tekniske detaljer:<\/h3>\n<p>Operating Voltage: 3.3V to 5V<br \/>\nOutput type: Analog<\/p>\n<h3>Eksempel<\/h3>\n<p>Her viser vi et hurtig eksempel på hvordan du sammen sætter dette modul til en “Arduino Uno R3”, Når lysstyrken\/lux værdier er opnået tænder\/slukker en LED. I dette tilfælde slukker LED’en når der er for lyst.<\/p>\n<p>Du skal bruge:<\/p>\n<ul>\n<li><a href=\"https:\/\/ardustore.dk\/produkt\/arduino-uno-r3\">Arduino Uno R3<\/a><\/li>\n<li><a href=\"https:\/\/ardustore.dk\/produkt\/mini-b-usb-kabel\">Mini-B USB stik<\/a><\/li>\n<li><a href=\"https:\/\/ardustore.dk\/produkt\/led-5mm\">LED<\/a><\/li>\n<li><a href=\"https:\/\/ardustore.dk\/produkt\/metal-film-resistor\">10K Modstand<\/a><\/li>\n<\/ul>\n<p><em>Alle dele kan købes i webshoppen. Klik på navnet for at blive viderestillet til produktet.<\/em><\/p>\n<p>Forbind det sådan:<\/p>\n<p>Pin 2 (Arduino) – LED 1 +<br \/>\nPin GND (A
rduino) – LED 1 –<\/p>\n<p>Pin +5v (Arduino) – LED Sensor +<br \/>\nPin A2 (Arduino) – LED Sensor - (Signal)<br \/>\n10K Modstand samles mellem “GND” og “signal” (Stabilisere signalet)<\/p>\n<p><img src=\"https:\/\/ardustore.dk\/wp-content\/uploads\/2018\/04\/hejx11111.jpg\" \/><\/p>\n<h3>Kode:<\/h3>\n<pre>  \/\/Hentes fra ardustore.dk - info@ardustore.dk\r\n\r\n\r\n  int LED1 = 2;        \/\/LED Pin 2 indikere det er mørkt\r\n  int sensorPin = A2;   \/\/define analog pin 2 and 10K pulldown are connected to A2 and GND. S på modulet\r\n  int value = 0;\r\n\r\n  void setup() {\r\n  Serial.begin(9600); \r\n  pinMode(LED1, OUTPUT);\r\n  }\r\n\r\n  void loop() {\r\n  value = analogRead(sensorPin); \r\n  Serial.println(value, DEC); \/\/ light intensity\r\n      \r\n\r\n  \/\/Aktivere LED når det er lyst\r\n  if (value &lt; 600) {\r\n  digitalWrite(LED1, HIGH);\r\n  }\r\n\r\n  \/\/Deaktivere LED når det er mørkt\r\n  if (value &gt; 600) {\r\n  digitalWrite(LED1, LOW);\r\n  }\r\n  \r\n  delay(100); \r\n}<\/pre>\n<h3>
Download<\/h3>\n<ul>\n<li>Photosensitive Resistance LED Sensor.fzpz (Findes allerede i fritzing<strong> LTR 301<\/strong>)<\/li>\n<\/ul>\n<h3>Kontakt os<\/h3>\n<p>Du er altid velkommen til at kontakte os på <a href=\"http:\/\/ardustore.dk\/kontakt-os\">info@ardustore.dk<\/a>, eller sende os en besked via messenger <a href=\"http:\/\/m.me\/Ardustore.dk\">(Klik her)<\/a> og vi vil hjælpe dig.<\/p>\n<p>&nbsp;<\/p>\n",
        "short_description": "<p>Photosensitive Resistance LED Sensor.<\/p>\n",
        "sku": "7777",
        "price": "3",
        "regular_price": "3",
        "sale_price": "",
        "date_on_sale_from": null,
        "date_on_sale_from_gmt": null,
        "date_on_sale_to": null,
        "date_on_sale_to_gmt": null,
        "on_sale": false,
        "purchasable": true,
        "total_sales": 364,
        "virtual": false,
        "downloadable": false,
        "downloads": [
        ],
        "download_limit": -1,
        "download_expiry": -1,
        "external_url": "",
        "button_text": "",
        "tax_status": "taxable",
        "tax_class": "",
        "manage_stock": true,
        "stock_quantity": 373,
        "in_stock": true,
        "backorders": "no",
        "backorders_allowed": false,
        "backordered": false,
        "sold_individually": false,
        "weight": "",
        "dimensions": {
            "length": "",
            "width": "",
            "height": ""
        },
        "shipping_required": true,
        "shipping_taxable": true,
        "shipping_class": "",
        "shipping_class_id": 0,
        "reviews_allowed": true,
        "average_rating": "0.00",
        "rating_count": 0,
        "upsell_ids": [
            257,
            731,
            13892,
            1115
        ],
        "cross_sell_ids": [
        ],
        "parent_id": 0,
        "purchase_note": "",
        "categories": [
            {
                "id": 121,
                "name": "Fotosensitiv Sensor",
                "slug": "fotosensitiv-sensor"
            }
        ],
        "tags": [
            {
                "id": 47,
                "name": "LED",
                "slug": "led"
            },
            {
                "id": 119,
                "name": "Photosensitive Resistance",
                "slug": "photosensitive-resistance"
            },
            {
                "id": 110,
                "name": "Sensor",
                "slug": "sensor"
            }
        ],
        "images": [
            {
                "id": 739,
                "date_created": "2018-04-27T13:15:09",
                "date_created_gmt": "2018-04-27T09:15:09",
                "date_modified": "2018-04-27T13:15:21",
                "date_modified_gmt": "2018-04-27T09:15:21",
                "src": "https:\/\/ardustore.dk\/wp-content\/uploads\/2018\/04\/leeeeeed.jpg",
                "name": "LED LDR",
                "alt": "",
                "position": 0
            }
        ],
        "attributes": [
        ],
        "default_attributes": [
        ],
        "variations": [
        ],
        "grouped_products": [
        ],
        "menu_order": 0,
        "price_html": "<span class=\"woocommerce-Price-amount amount\"><bdi><span class=\"woocommerce-Price-currencySymbol\">kr.<\/span>3.00<\/bdi><\/span> <small class=\"woocommerce-price-suffix\">inkl. moms<\/small>",
        "related_ids": [
            3068,
            4498,
            3070,
            3667,
            3534
        ],
        "meta_data": [
            {
                "id": 4944,
                "key": "_yoast_wpseo_primary_product_cat",
                "value": "121"
            },
            {
                "id": 4945,
                "key": "_yoast_wpseo_focuskw_text_input",
                "value": "Photosensitive Resistance LED Sensor"
            },
            {
                "id": 4946,
                "key": "_yoast_wpseo_focuskw",
                "value": "Photosensitive Resistance LED Sensor"
            },
            {
                "id": 4947,
                "key": "_yoast_wpseo_metadesc",
                "value": "Photosensitive Resistance LED Sensor."
            },
            {
                "id": 4948,
                "key": "_yoast_wpseo_linkdex",
                "value": "68"
            },
            {
                "id": 4949,
                "key": "_yoast_wpseo_content_score",
                "value": "90"
            },
            {
                "id": 4950,
                "key": "_wpas_done_all",
                "value": "1"
            },
            {
                "id": 20336,
                "key": "_bulkdiscount_text_info",
                "value": ""
            },
            {
                "id": 20337,
                "key": "_bulkdiscount_enabled",
                "value": "yes"
            },
            {
                "id": 20338,
                "key": "_bulkdiscount_quantity_1",
                "value": ""
            },
            {
                "id": 20339,
                "key": "_bulkdiscount_discount_1",
                "value": ""
            },
            {
                "id": 20340,
                "key": "_bulkdiscount_quantity_2",
                "value": ""
            },
            {
                "id": 20341,
                "key": "_bulkdiscount_discount_2",
                "value": ""
            },
            {
                "id": 20342,
                "key": "_bulkdiscount_quantity_3",
                "value": ""
            },
            {
                "id": 20343,
                "key": "_bulkdiscount_discount_3",
                "value": ""
            },
            {
                "id": 20344,
                "key": "_bulkdiscount_quantity_4",
                "value": ""
            },
            {
                "id": 20345,
                "key": "_bulkdiscount_discount_4",
                "value": ""
            },
            {
                "id": 20346,
                "key": "_bulkdiscount_quantity_5",
                "value": ""
            },
            {
                "id": 20347,
                "key": "_bulkdiscount_discount_5",
                "value": ""
            },
            {
                "id": 85882,
                "key": "_avecdo_brand",
                "value": ""
            },
            {
                "id": 85883,
                "key": "_avecdo_mpn",
                "value": ""
            },
            {
                "id": 85884,
                "key": "_avecdo_upc",
                "value": ""
            },
            {
                "id": 85885,
                "key": "_avecdo_ean",
                "value": ""
            },
            {
                "id": 85886,
                "key": "_avecdo_isbn",
                "value": ""
            },
            {
                "id": 85887,
                "key": "_ss_country_of_origin",
                "value": ""
            },
            {
                "id": 85888,
                "key": "_ss_customs_desc",
                "value": ""
            },
            {
                "id": 85889,
                "key": "_ss_hs_code",
                "value": ""
            },
            {
                "id": 214642,
                "key": "_last_editor_used_jetpack",
                "value": "classic-editor"
            },
            {
                "id": 214643,
                "key": "_yoast_wpseo_estimated-reading-time-minutes",
                "value": "2"
            },
            {
                "id": 317017,
                "key": "_wc_gla_mc_status",
                "value": "approved"
            },
            {
                "id": 317847,
                "key": "_wc_gla_sync_status",
                "value": "synced"
            },
            {
                "id": 317848,
                "key": "_wc_gla_visibility",
                "value": "sync-and-show"
            },
            {
                "id": 436087,
                "key": "_yoast_wpseo_wordproof_timestamp",
                "value": ""
            },
            {
                "id": 436088,
                "key": "_yoast_wpseo_opengraph-title",
                "value": "Photosensitive Resistance LED Sensor"
            },
            {
                "id": 436089,
                "key": "_yoast_wpseo_opengraph-description",
                "value": "Photosensitive Resistance LED Sensor."
            },
            {
                "id": 436090,
                "key": "_yoast_wpseo_opengraph-image",
                "value": "https:\/\/ardustore.dk\/wp-content\/uploads\/2018\/04\/leeeeeed.jpg"
            },
            {
                "id": 436091,
                "key": "_yoast_wpseo_opengraph-image-id",
                "value": "739"
            },
            {
                "id": 436092,
                "key": "_yoast_wpseo_twitter-title",
                "value": "Photosensitive Resistance LED Sensor"
            },
            {
                "id": 436093,
                "key": "_yoast_wpseo_twitter-description",
                "value": "Photosensitive Resistance LED Sensor."
            },
            {
                "id": 436094,
                "key": "_yoast_wpseo_twitter-image",
                "value": "https:\/\/ardustore.dk\/wp-content\/uploads\/2018\/04\/leeeeeed.jpg"
            },
            {
                "id": 436095,
                "key": "_yoast_wpseo_twitter-image-id",
                "value": "739"
            },
            {
                "id": 671188,
                "key": "_wc_gla_synced_at",
                "value": "1708339267"
            },
            {
                "id": 671189,
                "key": "_wc_gla_google_ids",
                "value": {
                    "DK": "online:da:DK:gla_736"
                }
            }
        ],
        "yoast_head": "<!-- This site is optimized with the Yoast SEO plugin v22.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Photosensitive Resistance LED Sensor - Ardustore.dk<\/title>\n<meta name=\"description\" content=\"Photosensitive Resistance LED Sensor.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ardustore.dk\/produkt\/photosensitive-resistance-led-sensor\" \/>\n<meta property=\"og:locale\" content=\"da_DK\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Photosensitive Resistance LED Sensor\" \/>\n<meta property=\"og:description\" content=\"Photosensitive Resistance LED Sensor.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ardustore.dk\/produkt\/photosensitive-resistance-led-sensor\" \/>\n<meta property=\"og:site_name\" content=\"Ardustore.dk\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.f
acebook.com\/Ardustore.dk\/\" \/>\n<meta property=\"article:modified_time\" content=\"2024-02-19T10:40:23+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ardustore.dk\/wp-content\/uploads\/2018\/04\/leeeeeed.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"575\" \/>\n\t<meta property=\"og:image:height\" content=\"511\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Photosensitive Resistance LED Sensor\" \/>\n<meta name=\"twitter:description\" content=\"Photosensitive Resistance LED Sensor.\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/ardustore.dk\/wp-content\/uploads\/2018\/04\/leeeeeed.jpg\" \/>\n<meta name=\"twitter:label1\" content=\"Estimeret læsetid\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutter\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPag
e\",\"@id\":\"https:\/\/ardustore.dk\/produkt\/photosensitive-resistance-led-sensor\",\"url\":\"https:\/\/ardustore.dk\/produkt\/photosensitive-resistance-led-sensor\",\"name\":\"Photosensitive Resistance LED Sensor - Ardustore.dk\",\"isPartOf\":{\"@id\":\"https:\/\/ardustore.dk\/#website\"},\"datePublished\":\"2018-04-27T09:11:06+00:00\",\"dateModified\":\"2024-02-19T10:40:23+00:00\",\"description\":\"Photosensitive Resistance LED Sensor.\",\"breadcrumb\":{\"@id\":\"https:\/\/ardustore.dk\/produkt\/photosensitive-resistance-led-sensor#breadcrumb\"},\"inLanguage\":\"da-DK\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ardustore.dk\/produkt\/photosensitive-resistance-led-sensor\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ardustore.dk\/produkt\/photosensitive-resistance-led-sensor#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Hjem\",\"item\":\"https:\/\/ardustore.dk\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Produkter\",\"it
em\":\"https:\/\/ardustore.dk\/produkter\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Photosensitive Resistance LED Sensor\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ardustore.dk\/#website\",\"url\":\"https:\/\/ardustore.dk\/\",\"name\":\"Ardustore.dk\",\"description\":\"Alt til dit hjemme projekt - ellers skaffer vi det\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/ardustore.dk\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"da-DK\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->",
        "yoast_head_json": {
            "title": "Photosensitive Resistance LED Sensor - Ardustore.dk",
            "description": "Photosensitive Resistance LED Sensor.",
            "robots": {
                "index": "index",
                "follow": "follow",
                "max-snippet": "max-snippet:-1",
                "max-image-preview": "max-image-preview:large",
                "max-video-preview": "max-video-preview:-1"
            },
            "canonical": "https:\/\/ardustore.dk\/produkt\/photosensitive-resistance-led-sensor",
            "og_locale": "da_DK",
            "og_type": "article",
            "og_title": "Photosensitive Resistance LED Sensor",
            "og_description": "Photosensitive Resistance LED Sensor.",
            "og_url": "https:\/\/ardustore.dk\/produkt\/photosensitive-resistance-led-sensor",
            "og_site_name": "Ardustore.dk",
            "article_publisher": "https:\/\/www.facebook.com\/Ardustore.dk\/",
            "article_modified_time": "2024-02-19T10:40:23+00:00",
            "og_image": [
                {
                    "width": 575,
                    "height": 511,
                    "url": "https:\/\/ardustore.dk\/wp-content\/uploads\/2018\/04\/leeeeeed.jpg",
                    "type": "image\/jpeg"
                }
            ],
            "twitter_card": "summary_large_image",
            "twitter_title": "Photosensitive Resistance LED Sensor",
            "twitter_description": "Photosensitive Resistance LED Sensor.",
            "twitter_image": "https:\/\/ardustore.dk\/wp-content\/uploads\/2018\/04\/leeeeeed.jpg",
            "twitter_misc": {
                "Estimeret læsetid": "2 minutter"
            },
            "schema": {
                "@context": "https:\/\/schema.org",
                "@graph": [
                    {
                        "@type": "WebPage",
                        "@id": "https:\/\/ardustore.dk\/produkt\/photosensitive-resistance-led-sensor",
                        "url": "https:\/\/ardustore.dk\/produkt\/photosensitive-resistance-led-sensor",
                        "name": "Photosensitive Resistance LED Sensor - Ardustore.dk",
                        "isPartOf": {
                            "@id": "https:\/\/ardustore.dk\/#website"
                        },
                        "datePublished": "2018-04-27T09:11:06+00:00",
                        "dateModified": "2024-02-19T10:40:23+00:00",
                        "description": "Photosensitive Resistance LED Sensor.",
                        "breadcrumb": {
                            "@id": "https:\/\/ardustore.dk\/produkt\/photosensitive-resistance-led-sensor#breadcrumb"
                        },
                        "inLanguage": "da-DK",
                        "potentialAction": [
                            {
                                "@type": "ReadAction",
                                "target": [
                                    "https:\/\/ardustore.dk\/produkt\/photosensitive-resistance-led-sensor"
                                ]
                            }
                        ]
                    },
                    {
                        "@type": "BreadcrumbList",
                        "@id": "https:\/\/ardustore.dk\/produkt\/photosensitive-resistance-led-sensor#breadcrumb",
                        "itemListElement": [
                            {
                                "@type": "ListItem",
                                "position": 1,
                                "name": "Hjem",
                                "item": "https:\/\/ardustore.dk\/"
                            },
                            {
                                "@type": "ListItem",
                                "position": 2,
                                "name": "Produkter",
                                "item": "https:\/\/ardustore.dk\/produkter"
                            },
                            {
                                "@type": "ListItem",
                                "position": 3,
                                "name": "Photosensitive Resistance LED Sensor"
                            }
                        ]
                    },
                    {
                        "@type": "WebSite",
                        "@id": "https:\/\/ardustore.dk\/#website",
                        "url": "https:\/\/ardustore.dk\/",
                        "name": "Ardustore.dk",
                        "description": "Alt til dit hjemme projekt - ellers skaffer vi det",
                        "potentialAction": [
                            {
                                "@type": "SearchAction",
                                "target": {
                                    "@type": "EntryPoint",
                                    "urlTemplate": "https:\/\/ardustore.dk\/?s={search_term_string}"
                                },
                                "query-input": "required name=search_term_string"
                            }
                        ],
                        "inLanguage": "da-DK"
                    }
                ]
            }
        },
        "jetpack_sharing_enabled": true,
        "_links": {
            "self": [
                {
                    "href": "https:\/\/ardustore.dk\/wp-json\/wc\/v2\/products\/736"
                }
            ],
            "collection": [
                {
                    "href": "https:\/\/ardustore.dk\/wp-json\/wc\/v2\/products"
                }
            ]
        }
    }
]
Avatar billede erikjacobsen Ekspert
26. februar 2024 - 09:44 #1
Bruger du  TJSonObject ?
Avatar billede arne_v Ekspert
28. februar 2024 - 01:40 #2
Den her kode udskriver src:


program ParseJSON;

{$APPTYPE CONSOLE}

uses
  System.SysUtils, System.IOUtils, System.JSON;

var
  lst, imgs : TJSONArray;
  elm, img : TJSONObject;
  src : string;
  i, j : integer;

begin
  lst := TJSONObject.ParseJSONValue(TEncoding.UTF8.GetBytes(TFile.ReadAllText('data.json')), 0) as TJSONArray;
  for i := 1 to lst.Count do begin
    elm := lst.Items[i - 1] as TJSONObject;
    imgs := elm.GetValue('images') as TJsonArray;
    for j := 1 to imgs.Count do begin
      img := imgs.Items[j - 1] as TJSONObject;
      src := img.GetValue('src').ToString;
      writeln(src);
    end;
  end;
end.
Avatar billede juzas Mester
28. februar 2024 - 20:43 #3
Jeg har PT ingen kode. Men når jeg bruger din arne:

procedure TForm3.Button1Click(Sender: TObject);
var
  lst, imgs : TJSONArray;
  elm, img : TJSONObject;
  src : string;
  i, j : integer;

begin
  lst := TJSONObject.ParseJSONValue(TEncoding.UTF8.GetBytes(TFile.ReadAllText('data.json')), 0) as TJSONArray;
  for i := 1 to lst.Count do begin
    elm := lst.Items[i - 1] as TJSONObject;
    imgs := elm.GetValue('images') as TJsonArray;
    for j := 1 to imgs.Count do begin
      img := imgs.Items[j - 1] as TJSONObject;
      src := img.GetValue('src').ToString;
      writeln(src);
    end;
  end;

Får jeg disse fejl:
[dcc32 Error] Unit3.pas(63): E2003 Undeclared identifier: 'TFile'
[dcc32 Error] Unit3.pas(63): E2029 'END' expected but ')' found
[dcc32 Error] Unit3.pas(64): E2029 ';' expected but 'FOR' found
[dcc32 Error] Unit3.pas(65): E2003 Undeclared identifier: 'elm'
[dcc32 Error] Unit3.pas(65): E2066 Missing operator or semicolon
[dcc32 Error] Unit3.pas(65): E2015 Operator not applicable to this operand type
[dcc32 Error] Unit3.pas(66): E2003 Undeclared identifier: 'imgs'
[dcc32 Error] Unit3.pas(66): E2066 Missing operator or semicolon
[dcc32 Error] Unit3.pas(66): E2015 Operator not applicable to this operand type
[dcc32 Error] Unit3.pas(67): E2003 Undeclared identifier: 'j'
[dcc32 Error] Unit3.pas(67): E2029 'DO' expected but identifier 'Count' found
[dcc32 Error] Unit3.pas(68): E2003 Undeclared identifier: 'img'
[dcc32 Error] Unit3.pas(68): E2066 Missing operator or semicolon
[dcc32 Error] Unit3.pas(68): E2015 Operator not applicable to this operand type
[dcc32 Error] Unit3.pas(69): E2003 Undeclared identifier: 'src'
[dcc32 Error] Unit3.pas(69): E2066 Missing operator or semicolon
[dcc32 Error] Unit3.pas(69): E2066 Missing operator or semicolon
[dcc32 Error] Unit3.pas(72): E2029 '.' expected but ';' found
[dcc32 Warning] Unit3.pas(75): W1011 Text after final 'END.' - ignored by compiler
[dcc32 Fatal Error] Project1.dpr(5): F2063 Could not compile used unit 'Unit3.pas'
Avatar billede arne_v Ekspert
28. februar 2024 - 20:56 #4
Har du uset alle fra:

System.SysUtils, System.IOUtils, System.JSON;

?
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Kurser inden for grundlæggende programmering

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester