I shoould have just tried that in the first place, but I am finding that this code is sometimes intuitive and sometimes not.
I am currently dealing with another issue. what I am trying to do is create a octave calculator where the user inputs a frquency number that number is analyzed against every octave group starting at the 1st and working upward until its octave gruop is found and displayed. I tried this but, no go, which I expected. please excues my greeness in coding:
Code: Select all
put field "freqField" into f
put 0 into q
put "st" into s
if f >q then
put(q+1)& s into o
if last charecter of o=2 then
put "nd" into s
end if
if last charecter of o=3 then
put "rd" into s
end if
if last charecter of o>3 then
put "th" into s
end if
put q+1 into e
else
put e*2 into q
end if
put "The" && o && Octave into field "Octave"
end mouseUp
Peace,
Mario