易截截图软件、单文件、免安装、纯绿色、仅160KB

VB代码写成C#代码

Set Rst = Dbs.OpenRecordset(MySQL, dbOpenForwardOnly)
   
  If Rst.EOF = True Then
Set Rst = Dbs.OpenRecordset(MySQL, dbOpenForwardOnly);

if(Rst.EOF == true)
{
  // to do something here
}

LZ不会是倒分吧?

不是,就是想问问,上面的VB代码C#怎么写?


Rst.EOF这个判断怎么写,不会Vb

C# code:

Rst = Dbs.OpenRecordset(MySQL, dbOpenForwardOnly);
if(Rst.EOF)
{
}



Rst.EOF是什么意思


SetRst = Dbs.OpenRecordset(MySQL, dbOpenForwardOnly);
if ((Rst.EOF == true)) {
   
}


Private Dbs As Database 
Dim Rst As Recordset

在.NET下,放着Ado.net不用?

感觉像是asp的代码吧

http://www.developerfusion.com/tools/convert/vb-to-csharp/ VB和c#互相转换


相关问答:

vb - VB / 基础类

我想把word另存为xml之后,用vb读取这个xml的内容,请问如何实现?
dim f as integer
dim b() as byte
dim s as string
dim L as long
f=freefile()
open "abc.xml" for binary access read as #f
......

vb读取用word转换成的xml里的数据 - VB / 基础类

Private Sub Command1_Click()
Dim MyString() As String
Open "a.xml" For Binary As #1 ' 打开刚创建的文件。
ReDim MyString(LOF(1) - 1)
  Put #1, , MyRecord ' 读入所有字符到变量中 ......

vb - VB / 基础类

xmlDoc1.loadXML(h)总是返回false,为什么?谢谢帮忙回答一下
h是什么呢。。。。。。。。。

h是xml格式的字符串

你是想打开。XML格式的文件吧?

我是把h放在xmlDoc1里,用xmlDoc1.loadXML(h),然后取xmlDo ......

vb 中 - VB / 基础类

dim a as string,b as string,c as string
a="工程编号,单位工程名称,分部工程编号"
b="单位工程名称"
c="单位"
怎么才能判断出a字符串中存在b字符串,而不存在c字符串

看看i ......

c#生成xml文件 - .NET技术 / C#

思路:要用c#生成一个播放机的播放列表的xml,例如:
<daty datys='2010-04-05' datye='2010-05-01' > //这是播放的日期段
  <time times='01:12:00' timee='02:30:00'> ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号