需要幫助從文本編輯框獲取輸入大家好,
我需要幫助從“文本編輯框”獲取輸入。 用戶輸入後很多數字(Lot_Num 變量),我想將其用作數字/文本值。當我嘗試打印 Lot_Num 時,我可以看到輸出不是用戶在“文本編輯框”中輸入的字符串。
該值需要放置在現有數據表的新行中。
User_Input = New Window( "Enter Lot Number",
Text Box( "Enter Lot Num:" ),
Lot_Num = Text Edit Box( "", <<SET width=""></SET>
回复:需要幫助從文本編輯框獲取輸入成功了。 謝謝...
回复:需要幫助從文本編輯框獲取輸入lot_num 變量指向文本編輯框,而不是文本本身。下面的一些代碼顯示瞭如何獲取該值,並且還使用模式窗口,以便處理停止,直到您單擊“確定”。
User_Input = New Window( "Enter Lot Number", << modal(),
hlistbox(
Text Box( "Enter Lot Num:" ),
Lot_Num_teb = Text Edit Box( "", <<SET width=""></SET>
回复:需要幫助從文本編輯框獲取輸入您引用的“Lot_Num”變量不是文本編輯框()的值,而是指向對象的指針。這是一個例子
幫助==>腳本索引==>文本編輯框
Names Default To Here( 1 );
win = New Window( "Example",
fontobj = text = Text Box( "Example Text" )
);
Print( text << Get Text() );