0

我创建了一个这样的字典:

Private WordMDictionary As Dictionary(Of String, String())

Public Sub wordget()
    WordMDictionary = New Dictionary(Of String, String())
    WordMDictionary.Add("Money", {"Money- Psychologically value added binary code or paper", "Cash - same meaning as money"})
End Sub

如何在运行时使用文本框添加到该词典以添加单词及其含义?

4

1 回答 1

0

假设你有TextBox一个单词和另一个TextBox(多行)它的含义。

WordMDictionary(txtWord.Text) = txtMeanings.Lines

所以一行是一种意思。

于 2013-07-20T21:16:14.230 回答