Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
リストボックスにノード リストの内部テキストを入力するのに問題はありませんが、以下のコードを変更して、ノードの内部テキストの最初の 20 文字だけを表示するにはどうすればよいですか (ご参考までに、すべてのノードにはさらに多くの20文字以上。
For Each subjects As Xml.XmlNode In sbList subjectBox.Items.Add(subjects.InnerText) Next
これは、あなたの望むことですか?
For Each subjects As Xml.XmlNode In sbList subjectBox.Items.Add(subjects.InnerText.Substring(0,20)) Next