Any suggestions?
Mike Bonner
bonnmike at gmail.com
Sun Jul 22 19:01:08 EDT 2012
Confirm that tLines contains a number, that's the most likely cause.
On Sun, Jul 22, 2012 at 4:54 PM, Charles Szasz <cszasz at mac.com> wrote:
> Hi Pete,
>
> Yes, I noticed that mistake and changed it but still get an error message:
> execution error for
> the following line (Operators +:error in left operand),char 16
>
> put line tLines+1 to x of thelist into field "final"
>
> in the following snippet of code.
>
>
> put the number of buttons of me into nbr
> put 1 into x
> repeat with n = 1 to nbr
> put the short name of button n of me into tName
> if not the hilite of button n of me then next repeat
> add 1 to x
> put x & "." & space & tName & cr after theList
> end repeat
> put round(the height of field "final" / the textheight of field
> "final",0) into tMaxLines
>
> put line 1 to tMaxLines of theList into field "final"
> if x> tMaxLines then
> put line tLines+1 to x of thelist into field "final2"
> else
> put empty into field "final2"
> end if
>
> Charles Szasz
> cszasz at mac.com
>
>
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
More information about the use-livecode
mailing list