create field on specific positoin
viktoras at ekoinf.net
Tue Jun 19 02:40:16 CDT 2007
I do this like that (just copied from an existing app):
create group "gLegendKeeper" in group "gLegend" of card "mainCard"
repeat with i=1 to 100
put "f" & i into gName
create field gName in group "gLegendKeeper" of group "gLegend" of card
set the left of field fName of card "mainCard" to (myLeft + 22)
set the top of field fName of card "mainCard" to graphicTop
note that a new group "gLegendkeeper" is created to make it easy to delete
the created fields when necessary by simply deleting the whole group.
All the best
From: runrev260805 at m-r-d.de
Date: 19/06/2007 09:10:09
To: use-revolution at lists.runrev.com
Subject: create field on specific positoin
i need to create several fields, 3 at a line, from a script. The number of
fields depends on the number of lines a textfile contains. Each field then
must contain an item of the text file. Excatly said, 3 items of each line of
the text file have to be put into the 3 fields.
Creating the fields from within the script should be no problem.
My problem is, i do not know:
How can i place the fields automatically on a specific postion, so i have 3
fields on each line?
How would you name them, so they could be accessed later.?
e.g. Field_1_3 should mean field from line 1, which contains item 3 from
line 1 of the textfile
use-revolution mailing list
use-revolution at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
More information about the use-livecode