使用 vb 将 10 行转换为行?

frarobsode1979

New member
嗨,我想将 richtextbox 内容从 10 行转换为 1 行,并移动到下一组 10 行(1 行),以此类推。例如:user1user2user3....usern 需要将每个 10 行写在一行上,如下所示:第一行:user1 user2 user3……user10,第二行:user11 user12 user13……user20,依此类推。有什么想法吗?
 

alenartec1978

New member
试试这个 Dim cnt as Integercnt = 0;dim result as Stringresult=""Do Until cnt = RichTextBox1.Lines.Count - 1 result = result
 

insihyca1974

New member
它很好用(就像helpinghand的代码一样好用)!只需要在一行中获取10行,“VbCrLf”后面是下一个10行..以此类推。你知道如何吗?
 
特别感谢helpinghand(http://www.blackhatworld.com/blackhat-seo/members/687625-helpinghand.html)的帮助,真的非常感谢你的帮助,伙计:祝贺你!
 
顶部