Subject Re: character string problem
From Charlie <tm@tc.com>
Date Sat, 16 Mar 2019 18:05:01 -0400
Newsgroups dbase.getting-started

OK back to the drawing board...

Does not like line 4905.  but 4904 is OK.... Not sure what is going on here!!!

Mervyn Bick Wrote:

> On 2019-03-16 8:13 PM, Charlie wrote:
> > Hi Mervyn... Sorry about your electricity.  That usually happens here when we have a hurricane.
> >
> > One question.  Say I want to do the same with the title field.  Would I just do it concurrently or would I need to do it in a different loop?
>
> You need to step through the title field character by character as well.
>
>
> ******** Add the following to your existing program *****
> go top
> do while not eof()
>    audesc = au_desc
>    for n = len(audesc) to 1 step -1
>        if substr(audesc,n,1) = ["]
>           audesc = stuff(audesc,n,1,[\"])
>        endif
>    next
>    ctitle = title
>    for n = len(ctitle) to 1 step -1
>       if substr(ctitle,n,1) = ["]
>          ctitle = stuff(ctitle,n,1,[\"])
>       endif
>    next
>    replace au_desc with audesc, title with ctitle
>    skip
> enddo
> go top
> ********
>
>
>
>