You say:
"Surely I must be missing something obvious, there has to be an
easy way of doing this."

There are myriad ways of doing what you want to do. What you are
asking to do is very fundamental. It sounds like you need to back up a
bit and learn about characters and arrays of characters, and
familiarize yourself with the operations and functions available to
you.

I suggest you get a C/C++ reference, and spend some time learning the language.

On 9/14/07, Ken Hoyes <[EMAIL PROTECTED]> wrote:
> I am trying to parse strings of data read from a text file and
> can't find a way to do it.
>
> The data can be divided with any suitable character - a colon
> for instance.
>
> I see how to iterate through the string looking for chrColon but
> then what?
>
> If I find chrColon at position i and j of str1, how do I then make
> str2 a sub-string of the characters between i and j?
>
> I found a net-page on String Constructors in C++ that provide
> functions including
>
>     string str1(str2,11,4)
>
> but the word "string" is not recognised in PODS.  I tried including
> the line
>
>     #include <string>
>
> as was used in the article I found at
> http://www.cppreference.com/cppstring/string_constructors.html
> but that generated errors by the 1000 when building the Palm
> application.
>
> Surely I must be missing something obvious, there has to be an
> easy way of doing this.
> --
> For information on using the ACCESS Developer Forums, or to unsubscribe, 
> please see http://www.access-company.com/developers/forums/
>


-- 
[Jeff Loucks]

-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to