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#互相转换
相关问答:
我想把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
......
Private Sub Command1_Click()
Dim MyString() As String
Open "a.xml" For Binary As #1 ' 打开刚创建的文件。
ReDim MyString(LOF(1) - 1)
Put #1, , MyRecord ' 读入所有字符到变量中 ......
xmlDoc1.loadXML(h)总是返回false,为什么?谢谢帮忙回答一下
h是什么呢。。。。。。。。。
h是xml格式的字符串
你是想打开。XML格式的文件吧?
我是把h放在xmlDoc1里,用xmlDoc1.loadXML(h),然后取xmlDo ......
dim a as string,b as string,c as string
a="工程编号,单位工程名称,分部工程编号"
b="单位工程名称"
c="单位"
怎么才能判断出a字符串中存在b字符串,而不存在c字符串
看看i ......
思路:要用c#生成一个播放机的播放列表的xml,例如:
<daty datys='2010-04-05' datye='2010-05-01' > //这是播放的日期段
<time times='01:12:00' timee='02:30:00'> ......