|
-
Jun 10th, 2001, 05:28 AM
#1
Thread Starter
Junior Member
Splite function not avalable in VB5
Split(StringToSplit[, DelimiterToUse, HowMany])
- Returns a one dimensional array
- StringToSplit is any valid string
- DelimiterToUse is the character that you want the string to be split by.
- HowMany is the number of elements you want to limit the array to.
- DelimiterToUse and HowMany are optional parameters.
- If you leave out the DelimterToUse, the function uses a space to split the string.
Example:
Dim MyString, MyArray
MyString = "apples,oranges,grapes"
MyArray = Split(MyString, ",")
Result:
A one dimensional array called MyArray with 3 elements.
Is there same this function (Split) in the VB5
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|