1 Apr 2010 07:15
Re: PP find text in file and replace
--- In powerpro-beginners@..., "Sheri" <silvermoonwoman <at> ...> wrote: > > --- In powerpro-beginners@..., "brother.gabriel" <brgabriel <at> > wrote: > > > > Sheri,say I have a long string of html containing hyperlinks. Is > > there something I can do without having to escape each instance > > of double-quotes? Every time I try ???end<mystring>end, I get an > > error saying it is improper syntax. > > You should post some code so I'll know what you mean. > I tried the multiline string delimiter and had embedded double quotes in the delimited string (no problem). However, if you are trying to define a very long string as scripted text, you do have to be careful not to exceed the maximum length of a Powerpro command (which is somewhere around 530 characters). For a very long string, you would need to use a series of commands. e.g., local mystring mystring=???end first 10 lines end mystring++=???end next 10 lines end etc.(Continue reading)
Thank you again.
Ray Ramirez DVM
"Chance favors the prepared mind." --Louise Pasteur
> A script stored in the scripts folder doesn't need any path specified
or extension specified.
>
> gpfjfm-beforetalk_00_straight_fromHeart
>
> s/b sufficient.
>
> The file's actual extension can be txt or powerpro.
>
> the %environment var% option has nothing to do with it. Since you are
selecting 'Script' make sure you are also selecting RunFile (not Run).
>
> There are other ways to run a script file. For example, instead of
selecting 'Script' you can just type dot followed by the script name
directly in the command entry, in your case:
>
> .gpfjfm-beforetalk_00_straight_fromHeart
>
> See the heading "running script files" in the documentation.
RSS Feed