Hello!
ex = New Window( "",
<<modal,
Panel Box( "", H List Box( teb = Text Edit Box() ) ),
Panel Box( "", H List Box( Button Box( "OK", ng = teb << get text ) ) )
);Looks like a simple error: the Text Edit Box isn't assigned to the variable teb. Try this:
Names Default to Here( 1 );
ex = New Window( "",
<< modal,
Border Box( "", teb = Text Edit Box("", << Set Width( 500 ) ) ),
Panel Box( "", H List Box( Button Box( "OK", ng = teb << get text ) ) )
);
I tried to do this, but the variable ng couldn't get the input edit text content
Looks like a simple error: the Text Edit Box isn't assigned to the variable teb. Try this:
Names Default to Here( 1 );
ex = New Window( "",
<< modal,
Border Box( "", teb = Text Edit Box("", << Set Width( 500 ) ) ),
Panel Box( "", H List Box( Button Box( "OK", ng = teb << get text ) ) )
);