Cuts a string from certain char till certain char, can be used to cut left, right and mid section of a string.
Edit 2025-02-19: Making search case insensitive.
Edit 2023-04-23: Adding 'ByVal' to 'StartFromChar' to avoid changing it in VBA
Remove 'ByVal' when using for ASP
Edit 2024-08-03: Fix issue with initial setup for StartFromChar
Access is limited.
Login here using your Linkedin account. to see or download code.
No registration, not another password to remember, login using your Linkedin account and have access to all public codes in Boldcodes.com
Linkedin LoginParameters
FromString, CutFrom, ToString, ByVal StartFromChar
Examples
CutString("Hello-World-Cruel", "", "-", 1) = "Hello"
CutString("Hello-World-Cruel", "-","-", 1) = "World"
CutString("Hello-World-Cruel", "-","-", 1) = "World"
Statistics
Views 6,722
Downloads 1,627
IDs
CodeID
DB ID

ANmarAmdeen
720
Revisions
v6.0
Wednesday
February
19
2025