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 !!! ;-)
Upload