create field on specific positoin

Ian McKnight iangmcknight at googlemail.com
Tue Jun 19 03:16:10 EDT 2007


Oops. Pressed send too early

On 19/06/07, Ian McKnight <iangmcknight at googlemail.com> wrote:
> Hi Matthias
>
> You could try the the following
>

> put the number of lines in myTextFile into tNumberOfLines
> put 20 into theDistanceBetweenLines -- this value is determined by the
> height of your field and the distance you want between them
>
> Repeat with theNextLine = 1 to tNumberOfLines
>
> clone group "myhiddengroup"
> set the name of  the last group to "Line"&theNextLine -- rename your
> group eg Line 7 or Line 3?
> set the loc of the last group to tXord, tYord +
> thedistancebetweenLines -- put it into position you will need to
> -- ungroup -- insert this command if you want the fields separated

show  group "Line"&theNextLine -- forgot about this

> repeat with theNextField = 1 to 3
> set the name of field "X_"&theNextField to theNextLine"&"_&"1" --
> renames X_1 to theLineNumber_1
> end repeat
> end repeat



-- 
Regards

Ian

=======================
Ian McKnight

iangmcknight at googlemail.com
=======================



More information about the use-livecode mailing list