对于vb.net中的声明 [英] For statement in vb.net

查看:62
本文介绍了对于vb.net中的声明的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

vb.net中的条件For语句...将这些语句转换为vb.net





示例



  for  int  i =  0 ; i <   this  .datagridview.Rows.Count; i ++)

next

解决方案

尝试 http://www.dotnetperls.com/for-vbnet [ ^ ]。它为您提供了一个非常基本的循环示例。



在VB.Net上阅读一本书也可以帮助您入门。


< blockquote>除了解决方案1:



每次需要将C#转换为VB.NET或反之亦然时,提出问题并不是很好。了解如何自动完成它会好得多。您可以同时拥有在线和离线解决方案。请参阅我以前的回答:需要将vb代码转换为c# [ ^ ]。



-SA


Conditional For statement in vb.net ...convert these statement into vb.net


for examples

for (int i = 0; i < this.datagridview.Rows.Count; i++) 

next

解决方案

Try http://www.dotnetperls.com/for-vbnet[^]. It gives you a very basic example of the loop.

Reading a book on VB.Net will also help you get started.


In addition to Solution 1:

It's not really good to ask a question each time you need to translate C# to VB.NET or visa versa. It's much better to learn how you can do it automatically. You can have both online and off-line solutions. Please see my past answer: Need to convert vb code to c#[^].

—SA


这篇关于对于vb.net中的声明的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆