VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

VB6 Split Function in VB5

Agent153  (2 Submissions)   String Manipulation   Visual Basic 3.0   Intermediate   Wed 3rd February 2021

This code duplicates the functionality of VB6's split function.

Inputs
TheString$: The string to be parsed Optional Delim$: The dilimeter to parse TheString$ by Optional Limit: The maximum number of elements to return.

Assumes
If Delim is ommited or is not found, a single element array is returned. To have Split return all of the substring, Limit should be set to -1.

Returns
Variant containing an array

Side Effects
If your program is migrated to VB6, this code will need to be removed, as it shares the same functionality (and name) of a VB6 intrisync function.

Rate VB6 Split Function in VB5 (3(3 Vote))
VB6 Split Function in VB5.bas

VB6 Split Function in VB5 Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters