benwilkins Posted October 12, 2017 Share Posted October 12, 2017 local currentTab = guiGetSelectedTab(tabPanel) local currentTabText = currentTab[guiGetText(label)] local currentTab = guiGetSelectedTab(tabPanel) local currentTabText = currentTab.guiGetText(label) local label = guiCreateLabel (0.04, 0.04, 1, 1, "Value #1", true, tab) Above is my example code.. I create multiple tabs, and each tab has exactly the same label names, just different values. How can I get the value of something in say, "Tab 1", "Label 1", but outside of the tab creation area. Further down the scripts. I know it is possible, I have done it before, I just completely forgot how. I forgot to mention, first 2 blocks of code is what I have tried, and doesn't work. Link to comment
WorthlessCynomys Posted October 12, 2017 Share Posted October 12, 2017 table1 = { label = guiCreateLabel() } guiGetText(table1["label"]) I can't really understand what your problem is, but maybe your looking for this ^^^ Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now