2016-08-02 38 views
2

我想在VB6中創建一個輸入框,我將能夠在PROMPT中包含空格。我試圖做我用MSGBOX做的同樣的事情,但它不讓我做VBCRLF。這裏就是我希望做如何創建一個多行輸入框

This company has more than 1 department. 
For Accounting type 1 
For Reasearch type 2 

輸入框在這裏和確定和取消對下面的代碼將顯示多行提示字符串右

回答

3

Dim ret As String 
Dim prompt As String 

prompt = "This company has more than 1 department." & vbCrLf & _ 
    "For Accounting type 1" & vbCrLf & _ 
    "For Reasearch type 2" 


ret = InputBox$(prompt) 
+1

你達人!謝謝 – BobSki

相關問題