Re: Split function or Join function: delimiter problem

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Rick Rothstein (rickNOSPAMnews_at_NOSPAMcomcast.net)
Date: 07/07/04


Date: Wed, 7 Jul 2004 13:43:49 -0400


> I'd love to know how to put parameters around a string that contains
quotation marks(a line from a text file that's a "|" delimited file as
in: "field"|"field"|"field").
>
> How can I code something like
>
> MyString = Parameter"field"|"field"|"field"Parameter
>
> so that VB 6.0 won't blow up every time it hits the string?
>
> I don't even know what parameters to use with the Replace function
when the item to be replaced is a quotation mark.
>
> Any solutions would be most appreciated.
>
> (my goal is to write lines from one text file to another -- export
from an external database has to be reformatted before importing to one
of ours. field values have to be reformatted or added to match the data
structure here)

Your Subject line talks about Split and Join while the body of your
message talks about Replace. Even assuming you are asking about all of
them, I'm afraid I'm still not following what you are trying to do.
Could you post a couple or three of **actual** lines from your text file
(cut and paste them) and then show us **exactly** what you would want
those lines to look like once they are changed? That will clue us in to
exactly what you want to do without getting lost in the verbal
description.

Rick - MVP



Relevant Pages

  • Re: Toward Terser Java
    ... {addToken(new StringLiteralToken(quotation));} ... public class QuotationAccumulator extends BaseAccumulator { ... public class CommentAccumulator extends BaseAccumulator { ... String quotation = accumulatedQuotation.toFinalString; ...
    (comp.lang.java.programmer)
  • RE: Pass data to website
    ... the string after the '?' ... "Kathy" wrote: ... If I add a quotation at the beginning of the url, ... Dim stAppName As String ...
    (microsoft.public.access.modulesdaovba)
  • Re: Which is this sentence
    ... But in order to achieve this translation ... define the "quotation" of S to be the result of ... Now define the "fixed point term" for any string S to be ... They are just operations on meaningless strings that produce other ...
    (sci.logic)
  • Re: Which is this sentence
    ... But in order to achieve this translation ... define the "quotation" of S to be the result of ... Now define the "fixed point term" for any string S to be ... They are just operations on meaningless strings that produce other ...
    (sci.logic)
  • Re: Error: ArgumentOutOfRangeException on stringbuilder
    ... > delimited file for banking stuff. ... > at System.Text.StringBuilder.Insert(Int32 index, String value) ... avoiding this problem in the first place. ...
    (microsoft.public.dotnet.framework.adonet)