Reply To: declaring and getComponent-better way?

Home Forums General Programming declaring and getComponent-better way? Reply To: declaring and getComponent-better way?

#72944
human fly
Participant
    • Topics: 124
    • Replies: 1070
    • Total: 1194
    • ★★★★

    i tried to do this but it fails at the 1st item. it should be
    declared with the load method. or does it have to be declared
    locally?

    	tabs_Main_pt1:		getComponent():setVisible(true)
    	tabs_mainB_pt1:		getComponent():setVisible(true)
    	tabsParamB_p1pt1:	getComponent():setVisible(true)
    	tabsParamB_p2pt1:	getComponent():setVisible(true)
    	tabsParamB_p3pt1:	getComponent():setVisible(true)
    	tabsParamB_p4pt1:	getComponent():setVisible(true)

    i was hoping to reduce code, and only declare once. what would be the
    correct way to do this?

    Ctrlr