How to I get clickItem?

Mark Brownell gizmotron at earthlink.net
Sun Aug 31 20:45:01 EDT 2003


On Sunday, August 31, 2003, at 12:18  PM, Mark Brownell wrote:

> array clean up script:
> put 1 into itemArray2[1]
>
> repeat with xy = 1 to tElementNum
>   put itemArray[xy] into get1
>   put itemArray[xy + 1] into get2
>   put char get1 to (get2 - 1) of tZap into holdItemWithTags
>   put the htmlText of holdItemWithTags into zip
>   put the number of chars in zip into holdNumZip
>   put holdNumZip into itemArray2[xy + 1]
> end repeat
>
> -- with the already created global itemArray2
>
> -- put this in myField script:

another oops:

array clean up script:
-- put 1 into itemArray2[1] ----- fixed this ------
-- make sure "<item>" comes up first if you want to count char 1 in the 
field

put 0 into holdNumZip ----- fixed this ------
repeat with xy = 1 to tElementNum
   put itemArray[xy] into get1
   put itemArray[xy + 1] into get2
   put char get1 to (get2 - 1) of tZap into holdItemWithTags
   put the htmlText of holdItemWithTags into zip
   put the number of chars in zip into zap
   put zap + holdNumZip into holdNumZip ----- fixed this ------
   put holdNumZip into itemArray2[xy + 1]
end repeat




More information about the use-livecode mailing list