VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



A powerful, and easy to use 'Split' function clone


Category: VB function enhancement
Compatability: Visual Basic 3.0
Difficulty: Unknown Difficulty
Date Added: Wed 3rd February 2021
Rating: (3 Votes)

It's my version of the 'Split' Vb function.
Features:
- Powerful
- complete (returns array, array size, and error code if something goes wrong..)
- sure (no error encountered since nowadays...)
- easy to use (no dimmed array required, works with all separator of any size on any string...)
- light (less than 15 lines of code...)

Inputs
chaine: string to separate separ: string used as separator, may be more than one charactere long. Ex: '|', ';', or 'XX'... tableau() : array of string used to store elements after separation nb_elem : integer used to store the number of elements (in the array above...)
Code Returns
It returned: - 0, if everything goes round... - the error code generated else...
Side Effects
To use it under Vb 6, I recommended you to rename it... However, it seems to work under Vb 6, even if it's named as 'Split'... (curious !!!) Test it, and mail-me back after !!! ;-)

Rate A powerful, and easy to use 'Split' function clone

Upload

Download this snippet    Add to My Saved Code

A powerful, and easy to use 'Split' function clone Comments

No comments have been posted about A powerful, and easy to use 'Split' function clone. Why not be the first to post a comment about A powerful, and easy to use 'Split' function clone.

Post your comment

Subject:
Message:
0/1000 characters