{"title":"TextConst.Remove(Integer [, Integer]) Method","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/textconst/textconst-remove-method/","by":"JOP-AL","license":"Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/textconst/textconst-remove-method, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/textconst/textconst-remove-method","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"Returns a new Text in which a specified number of characters from the current string are deleted.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":1,"title":"TextConst.Remove(Integer [, Integer]) Method","slug":"textconstremoveinteger-integer-method","at":0,"chars":787},{"level":2,"title":"Syntax","slug":"syntax","at":206,"chars":89},{"level":2,"title":"Parameters","slug":"parameters","at":295,"chars":289},{"level":2,"title":"Return Value","slug":"return-value","at":584,"chars":73},{"level":2,"title":"See Also","slug":"see-also","at":657,"chars":130}],"text":"# TextConst.Remove(Integer [, Integer]) Method\n> Version: _Available or changed with runtime version 15.1._\nReturns a new Text in which a specified number of characters from the current string are deleted.\n## Syntax\n```al\nResult :=   TextConst.Remove(StartIndex: Integer [, Count: Integer])\n```\n## Parameters\nTextConst\nType: textconst-data-type\nAn instance of the textconst-data-type data type.\nStartIndex\nType: ../integer/integer-data-type\nThe one-based position to begin deleting characters.\n*[Optional] Count*\nType: ../integer/integer-data-type\nThe number of characters to delete.\n## Return Value\nResult\nType: ../text/text-data-type\nThe end result Text.\n## See Also\ntextconst-data-type\nGetting started with AL<../../devenv-get-started>\nDeveloping extensions<../../devenv-dev-overview>"}