NI產品與技術 討論區

取消
顯示結果 
搜尋替代 
您的意思是: 

如何讓字串內容顯示而不能修改

已解決!
前往解決方案

各位大大

     小弟有2個問題,一個是要如何將字串的內容顯示出來但無法修改, 但是按一個鍵後, 便可修改內容, 在按另外一個鍵後則恢復回來顯示字串的內容但無法修改; 另一個問題是在程式執行時會彈出一視窗要使用者輸入帳號和密碼, 輸入完畢後視窗自動關閉. 就這兩個, 麻煩各位大大指點小弟一下, 謝謝

0 積分
1 條訊息(共 3 條)
4,579 檢視

Hi,

 

For String, you may Enable or Disable the string control using its property node: Disable

Disable = 0, Enabled

Disbale = 1, Disabled

Disbale = 2, Disabled & Grayed

 

For User ID and Password entry dialog, you may create a subVI that prompts user to enter the User ID and Password. After which, you need to process the entered information to verify the validity of the User ID and Password using String functions (and maybe in conjunction with array functions).

Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
2 條訊息(共 3 條)
4,568 檢視
解決方案
由主題作者所接受 top7878
感謝Jan Fung的幫忙, 我的問題已經解決, 非常感謝您
0 積分
3 條訊息(共 3 條)
4,558 檢視