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中做出状态栏
  • 热门搜索
    交通知识大全 微信运动怎么开启 青稞的功效与作用 物流管理专业是干什么的 水龙头什么牌子好 什么昵称好听 肠炎宁的功效与作用 什么是锆石 东京热什么意思 鸡蛋壳有什么用处