如何將按鈕的文本用作資源名稱? 我嘗試: Public Sub LlamadaButton(ByVal sender As Object, ByVal e As System.EventArgs)
Dim ButtonN As Button = CType(sender, Button)
Dim ResourceName = ButtonN.Text
ReadDeli
我有一個長文本文件,有卡車配置。在每一行中,卡車的一些屬性被列爲一個字符串。每個屬性都有字符串中的自己固定寬度的空間,如: 2 chracters = number of axles
2 characters = weight of the first axle
2 characters = weight of the second axle
...
2 characters = weig
我想動態生成一個整數(在下面的情況下,100或500),並使用它來訪問單獨的數組。在後面的步驟中(不是下面的代碼的一部分),我還想以相同的方式訪問這些數組的不同部分(「消息1,2或3」)。 對於這個概念證明我沒有動態生成一個整數的,但我只是將它設置爲100 然後我試圖用eval()動態生成由「警告」和100的數組名,但它工作不正常。 這是我的代碼: // two arrays are define