Need help with getting input from a Text Edit BoxHi All,
I need help with getting input from a "Text Edit Box". After the user inputs the Lot Number (Lot_Num variable), i wanna use it as a numaric/text value. when i try to print Lot_Num, i can see that the output is not the string the user put in the "Text Edit Box".
This value will need to be placed in a new row for existing data table.
User_Input = New Window( "Enter Lot Number",
Text Box( "Enter Lot Num:" ),
Lot_Num = Text Edit Box( "", <<SET width=""></SET>
Re: Need help with getting input from a Text Edit BoxDid the trick. Thx...
Re: Need help with getting input from a Text Edit BoxThe lot_num variable points to the text edit box, not the text itself. Here's some code that shows how to get the value, and also uses a modal window so that processing stops until you click OK.
User_Input = New Window( "Enter Lot Number", << modal(),
hlistbox(
Text Box( "Enter Lot Num:" ),
Lot_Num_teb = Text Edit Box( "", <<SET width=""></SET>
Re: Need help with getting input from a Text Edit BoxThe "Lot_Num" variable that you are referencing, is not the value of the Text Edit Box(), but rater a pointer to the object. Here is an example from
Help==>Scripting Index==>Text Edit Box
Names Default To Here( 1 );
win = New Window( "Example",
fontobj = text = Text Box( "Example Text" )
);
Print( text << Get Text() );