VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



String Processing Library (Parsing, Translation, Validation)

by James Vincent Carnicelli (21 Submissions)
Category: String Manipulation
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (9 Votes)

Library of routines for typical string processing, including parsing, translation, and validation. Routines include:

- StrReplace(Text, SearchFor, ReplaceWith, [Compare]) As String

- StrSplit(Text, SplitOn, [Compare]) As Variant

- FromHex(HexNumber) As Long

- LeftPad(Value, Size, [PadCharacter]) As String

- RightPad(Value, Size, [PadCharacter]) As String

- AreLetters(Text) As Boolean

- AreDigits(Text) As Boolean

- AreLettersOrDigits(Text) As Boolean

- AreInSet(Text, CharacterSet, [CaseSensitive]) As Boolean

- ParseN(Text, StartAt, PatternArray, ValueArray, [PosPastEnd], [StopAt], [Compare]) As Boolean

Clean code with lots of comments in reusable module. Also includes an extensive reference in HTML. Tested with VB6, but should be compatible with all modern versions and VBScript (with minor modifications).

Please vote for this code if you like it.

Rate String Processing Library (Parsing, Translation, Validation)

Download String Processing Library (Parsing, Translation, Validation)

Download String Processing Library (Parsing, Translation, Validation) (8 KB)

String Processing Library (Parsing, Translation, Validation) Comments

No comments have been posted about String Processing Library (Parsing, Translation, Validation). Why not be the first to post a comment about String Processing Library (Parsing, Translation, Validation).

Post your comment

Subject:
Message:
0/1000 characters