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
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:
>
>
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
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
__
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
_
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
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