Create a string slicing programme that will take data from a spreadsheet (as given) and output to a ‘delimited ASCII file’
how to split a string
Collapse
X
-
Tags: None
-
use split(stringVal ue,delimitedStr ing) return string arrayOriginally posted by 963852741159753Create a string slicing programme that will take data from a spreadsheet (as given) and output to a ‘delimited ASCII file’ -
-
are you asking in Vb for splitOriginally posted by 963852741159753sorry what is the code for that i am an amatureComment
-
-
Originally posted by 963852741159753yes please
Private Sub splitStrintValu e()
Dim strVal As String
Dim charVal(11) As String
strVal = "A,B,C,D,E,F,G, H,I,J,K"
charVal = Split(strVal, ",")
strVal = Join(charVal, "-")
'Out Put of strVal = A-B-C-D-E-F-G-H-I-J-K
End SubComment
-
thanks but what i need is to read a txt file into an array string slice it and to write it back a delimted ascii file if can help much appreciatedComment
-
sorry, i am not getting 'delimited ASCII file’.........?Originally posted by 963852741159753thanks but what i need is to read a txt file into an array string slice it and to write it back a delimted ascii file if can help much appreciatedComment
-
sorry. M.Molloy@2005.l jmu.ac.uk*MR.MA LACHI MOLLOY*<>*<2665 65>*<2111108950 9137> the stars are the delimeters. what i need to do is seperate them into seperate colums and then import them into an access database any ideas. thanks m8Comment
-
i think some post are there to read from file and get the file input string then use split(inputstri ng,"*") into an array then you can store in databaseOriginally posted by 963852741159753sorry. M.Molloy@2005.l jmu.ac.uk*MR.MA LACHI MOLLOY*<>*<2665 65>*<2111108950 9137> the stars are the delimeters. what i need to do is seperate them into seperate colums and then import them into an access database any ideas. thanks m8Comment
-
-
Originally posted by 963852741159753sorry. M.Molloy@2005.l jmu.ac.uk*MR.MA LACHI MOLLOY*<>*<2665 65>*<2111108950 9137> the stars are the delimeters. what i need to do is seperate them into seperate colums and then import them into an access database any ideas. thanks m8
Code:...Removed by Moderator
TheScripts has policies against providing students with answers to their assignments.
We are here to help, not to do the work for you.
i think this will help youComment
-
Comment