hi all,
can someone help me with a script
i'm trying to turn on/off visibility on certain rows based on a hidden text input....1 for 1 row (row 2 and 3 hidden), 2 for 2 rows (row 3 hidden), 3 for 3 rows
i'm not much of a scrpting guy
i have 3 group containers, called row1, row2 and row3
and a text object called textSelector
the script is on the textSelector layer
any help is appreicated
----------------------
dim line1, line2, line3 as xpBaseObject
dim word as xpTextObject
self.GetObjectByName("row1", line1)
self.GetObjectByName("row2", line2)
self.GetObjectByName("row3", line3)
self.GetObjectByName("textSelector", word)
if word.text = "1" then
line1.visible = true
line2.visible = false
line3.visible = false
end if
if word.text = "2" then
line1.visible = true
line2.visible = true
line3.visible = false
end if
if word.text = "3" then
line1.visible = true
line2.visible = true
line3.visible = true
end if