How to include strutils into Pascal Script? lazarus / 5-Lazarus Extra Components ---------------------------------------------------------------------- palacs · 2018-06-14 08:58 Hi All, I would like to include unit strutils into a Pascal Script but I have not found any SIRegister_ or RIRegister_ functions (like RIRegister_stdctrls for unit stdctrls) that would import it. Is it even possible? Thanks ---------------------------------------------------------------------- Leledumbo · 2018-06-14 09:43 I guess you have to do it yourself. The original PascalScript package comes with a utility to generate import unit from existing one, but I can't find it in the one shipped with Lazarus. It was a Windows executable with no source AFAIR, probably that's why. ---------------------------------------------------------------------- palacs · 2018-06-14 11:04 Good to know it's possible. Is there any step-by-step howto or documentation on how to do the import with that tool? Have you (or anyone else) done this before? ---------------------------------------------------------------------- Leledumbo · 2018-06-15 10:42 Quote from: palacs on June 14, 2018, 01:04:31 pmIs there any step-by- step howto or documentation on how to do the import with that tool? I cannot find a definitive one, so my advice would be to look at StrUtils' friend: DateUtils, which has both uPSR_dateutils and uPSC_dateutils as imported units for PascalScript. A small tutorial explaining the concept with actual code is here: https://lawrencebarsanti.wordpress.com/2009/11/28/introduction-to- pascal-script/ Quote from: palacs on June 14, 2018, 01:04:31 pmHave you (or anyone else) done this before? Nope, never had a need before.