Find Code:
All Words
Any of the Words
Exact Phrase
Home
:
Code
:
Forums
:
Submit
:
Mailing List
:
About
:
Contact
Code
All
VB.NET
ASP.NET
C#
VB Classic
ASP Classic
Snippets
Popular
Resources
Submit Code
Forums
Articles
Tips
Links
Books
Contest
Link to us
How to break a string into an array in simple code...
Author:
Jeremy E. Reed
E-mail:
Click to e-mail author
Submitted:
7/10/2001
Version:
VB6
Compatibility:
VB6
Category:
String Manipulation
Views:
13169
How to break a string into an array in simple code.
Declarations:
Option Explicit Dim StringArray() As String
Code:
'This function takes a Module level 'Array that is defined with no elements, 'redefines it based on the length of a string, 'and cuts the string in to single charecters 'to put in the array elements Private Sub StringToArray(strString As String) Dim Index As Integer Dim Length As Integer Length = Len(strString) ReDim StringArray(1 To Length) 'redefine StringArray For Index = 1 To Length StringArray(Index) = Mid(strString, Index, 1) Next Index End Sub
Home
|
Forums
|
Submit
|
Books
|
Mailing List
|
Advertising
|
About
|
Contact
© 2023 A1VBCode. All rights reserved.
Legal disclaimer & terms of use
Privacy statement