Re: Having problem with SPLIT




"Bryan Oakley" <oakley@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:MFFwe.969$Ox3.533@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Earl Grieda wrote:
> > I am trying to embed a tab character into a line that gets emailed
> > to a report generator. Upon receipt of the email, I go through each
> > line of it with split since in the past emails have arrived with
> > unbalanced braces which then caused problems.
> >
> > The line I send is, \tHeader with a tab. After the split I get,
> > {\tHeader} with a tab. Another line sent without a tab, Header Without
> > a tab, is unaffected. What I want is the final line that gets passed to
> > "puts $reportFile" to be "\tHeader with a tab", but I cannot get rid of
> > the curly braces. I know this is my problem but I have run out of
ideas.
> >
> > Thanks.
> >
> >
>
> split returns a list, so maybe you need to do "puts [lindex
> $resultOfSplit 0]" to get your header? It's hard to say without seeing
> your actual code. Textual descriptions of code rarely describe the
> problem accurately.
>

Code:

if {$::DEBUG} {puts "FIRST0: $orgLine"}
set line [split $orgLine]
if {$::DEBUG} {puts "FIRST1: $line"}

DEBUG output:

FIRST0: \tHeader with a tab
FIRST1: {\tHeader} with a tab
FIRST0: Header Without a tab
FIRST1: Header Without a tab


.



Relevant Pages

  • Re: Word 2007 header with page number wont work
    ... you select the control and then click Developer> (Controls chunk) ... From the Insert tab, click the Header button; ... From the Design tab, click Page Number, Current Position, Plain Number. ...
    (microsoft.public.word.pagelayout)
  • Re: Word 2007 header with page number wont work
    ... The way it's used in this particular feature, the Content Control is ... From the Insert tab, click the Header button; ... From the Design tab, click Page Number, Current Position, Plain Number. ...
    (microsoft.public.word.pagelayout)
  • Re: Word 2007 header with page number wont work
    ... From the Insert tab, click the Header button; ... From the Design tab, click Page Number, Current Position, Plain Number. ... and click the Bottom Border button. ...
    (microsoft.public.word.pagelayout)
  • Re: Word 2007 header with page number wont work
    ... From the Insert tab, click the Header button; ... From the Design tab, click Page Number, Current Position, Plain Number. ... and click the Bottom Border button. ...
    (microsoft.public.word.pagelayout)
  • Re: align text left and align text right: on the same line
    ... Where the pound signs are something anybody can manually enter, the (TAB) is ... MyString is a variable in the VBA code. ... Currently, all I can think of is count the total characters in the header, ... "Jay Freedman" wrote: ...
    (microsoft.public.word.vba.general)