Re: Numbering of lines in a field

2014-05-03 Thread Charles Szasz
Andrew, Thanks for your script suggestion! I have a few lines that have tabs. When I included your suggestion in my script, I get the following below: CHC Accommodations: 1. Stress the following factors, when designing instructional activities: (a) Use vocabulary that the student unde

Re: Numbering of lines in a field

2014-05-03 Thread Andrew Kluthe
Sorry, sent that a little too soon. if "CHC" is word 1 of myLine or myLine contains tab then end if On Sat, May 3, 2014 at 8:42 AM, Andrew Kluthe wrote: > if "CHC" is word 1 or myLine contains tab then >yadda yadda > > end if > > > On Sat, May 3, 2014 at 8:27 AM, Charles Szasz wrote: > >

Re: Numbering of lines in a field

2014-05-03 Thread Andrew Kluthe
if "CHC" is word 1 or myLine contains tab then yadda yadda end if On Sat, May 3, 2014 at 8:27 AM, Charles Szasz wrote: > Mark, > > I added your function to my project and it works great! I have some lines > that have tabs in them. How can I modify your function so that it does not > count

Re: Numbering of lines in a field

2014-05-03 Thread Charles Szasz
Mark, I added your function to my project and it works great! I have some lines that have tabs in them. How can I modify your function so that it does not count lines if there is a tab in a line in addition to lines having “CHC”? Charles Szasz csz...@mac.com __

Re: Numbering of lines in a field

2014-04-28 Thread Charles Szasz
Hi Mike! I am sorry to be vague. When I sent the email I was just leaving for work and made my email very short. Your script does work now. I did not set up the function correctly which caused my problem. Thanks so much! Charles Szasz csz...@mac.com _

Re: Numbering of lines in a field

2014-04-28 Thread Mark Schonewille
Hi Charles, What does "without any success" mean exactly" Do you get wrong results? No result at all? Do you get any error messages? I have made a very tiny change to the script by adding a cr after myNewLines every time a line is added: constant dot = "." function lineNumbering theLines

Re: Numbering of lines in a field

2014-04-27 Thread Mark Schonewille
Hi Charles, I think the script you need looks like the following: constant dot = "." function lineNumbering theLines put 0 into myCounter repeat for each line myLine in theLines if "CHC" is word 1 of myLine then put 0 into myCounter put myLine & cr after myNewLines else