Re: String to Array

Tech-Archive recommends: Fix windows errors by optimizing your registry



You'll need to give us a little bit more information about what's going to
be in MyVar and how you need to parse it.

If all you're trying to do is get at specific characters in the string,
there's no need to convert it to an array: you can get at individual
characters in a string using the Mid function, and you can use other string
functions such as Left, Right and InStr in your parsing.

On the other hand, if what's in the string is going to be delimited in some
way, you can use the Split function to break it into an array on the
component parts.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


"Pat Backowski" <PatBackowski@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:9C976E25-C26D-4372-AF82-60EA74B51E13@xxxxxxxxxxxxxxxx
Hi Folks,

I've taken a user input on a form, and assigned it to a variable in the
code, say MyVar. Its a string. I want to redefine, pass to, somehow
make
it an array, so I can parse characters out of it when I make the name of
the
text file I'm ecentually exporting to.

Many Thanks,

Pat Backowski



.



Relevant Pages

  • Re: How to use GetLParam?
    ... When passing strings or pointer to any data or arrays accross process ... > I need to send a byte array or a string passed in the LParam from MY ... Dim MyVar As MyType ...
    (microsoft.public.dotnet.framework)
  • Re: dynamic array of ints
    ... >need to parse them out and put them in an array. ... >are there and thus don't know how large to make my array. ... >number of ints and then allocate memory based on that. ... >sure what to use to read the ints from the string. ...
    (comp.programming)
  • Re: Parsing Data, Storing into an array, Infinite Backslashes
    ... > I am using this function to parse data I have stored in an array. ... It looks like you are setting the variable qval to the string ... Hint: it ...
    (comp.lang.python)
  • String parsing?
    ... I am new to ruby but have an okay background in perl. ... I would like the array to look like this: ... I might see if there is an elegant way to parse this string using tokens. ...
    (comp.lang.ruby)
  • Re: StringTokenizer insert into Array??
    ... It will parse a given String ... public void addWord { ... > Each word being an element of the new array that I can manipulate later. ...
    (comp.lang.java.programmer)