vb.net中的循环语句

 时间:2024-10-13 20:06:01

1、For Each…Next 循环语句,控制流程介绍示例代码如下:

2、Private Sub btnForEachLoop_Click(sender As Object, e As EventArgs) Handles btnForEachLoop.Click 'Clear the list ClearList() 'List each folder at the root of your C drive For Each strFolder As String In My.Computer.FileSystem.GetDirectories("C:\") 'Add the item to the list lstData.Items.Add(strFolder) NextEnd Sub

  • 怎样设置VS字体、背景、显示行编号、显示工具箱
  • pgadmin4怎么配置启动
  • VB6.0中复选框的使用
  • VB.NET怎么使得程序窗口运行始终在最前面
  • 如何在VB中做出状态栏
  • 热门搜索
    宜昌旅游景点介绍 四川旅游网站 广西 旅游 栾川旅游景点 北海旅游景点介绍 蚂蚁窝旅游官网 内蒙旅游网 跟团旅游网 土耳其旅游签证 旅游信息化