See below example, the clipboard will hold a text like this. How do I get rid of the last blank line in this text ?
I tried playing with SubStr, StrReplace, and Rtrim but I cannot seem to get it working.
Any pointers ? Thanks in advance.
Example of clipboard content:
Code: Select all
ClipboardContent := "
(
Interne ID document Klant-/leveranciersnaam Provincie Gebouw Straat Postcode Plaats Land Artikelnummer Naam in vreemde taal Hoeveelheid Regeltotaal EUR Regeltotaal (VV) Prijsvaluta Gewicht 1 Documentnummer HS-Number Land van herkomst
953404 Michael Suhr Fake Street 18 A 83550 FakeCity FakeCountry 446333 Fake Article 1 1,00 44,54 0,00 EUR 1,2000 5772711 4820.10 5000 China
953404 Michael Suhr Fake Street 18 A 83550 FakeCity FakeCountry 435112 Fake Article 2 1,00 44,54 0,00 EUR 0,8000 5772711 4820.10 5000 China
953404 Michael Suhr Fake Street 18 A 83550 FakeCity FakeCountry P Packing and delivery 1,00 5,50 0,00 EUR 0,1000 5772711
)"