嗨,伙计们,你能帮我处理这个错误吗? [英] Hi guys can you help me to deal with this error pls?

查看:70
本文介绍了嗨,伙计们,你能帮我处理这个错误吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

它的End os statemente expect错误编号BC30205!请帮忙!伙计们,你能帮我处理这个错误吗?这是一个End os statemente expect错误!



这是程序:



dim data as as boolean = true

'dim dt as system.data.datarow

if CType(mainformdataset.tables(BO3)。rows(0).item(TAXPOINTDT ),system.date)= 01.01.1900

返回错误

ELSE

返回True

结束如果



因此错误在第3行第4行



这是一个PHC计划,是在网上



我尝试过:



我尝试修改程序的IF部分,但我有同样的问题!请帮忙!

解决方案

这不是日期,然后缺失。在我的VB版本中,我没有 System.Date ,但以下内容就是您所追求的:

  CType (mainformdataset.Tables(  BO3 )。行( 0 )。项目(  TAXPOINTDT),System.DateTime)=  DateTime( 1900  1  1 然后 


Its an "End os statemente expect" error number BC30205! Pls help! Hi guys can you help me to deal with this error pls? Its an "End os statemente expect" error!

This is the program:

dim data as boolean=true
'dim dt as system.data.datarow
if CType(mainformdataset.tables("BO3").rows(0).item("TAXPOINTDT"),system.date)=01.01.1900
Return False
ELSE
Return True
end if

So the error is on the line 3 with the line 4

This is a PHC program and is on the web

What I have tried:

I try to modify the "IF" part of the program but i have the same problem! Pls help!

解决方案

That is not a date and the Then is missing. I don't have System.Date in my version of VB but something like the following is what you are after:

CType(mainformdataset.Tables("BO3").Rows(0).Item("TAXPOINTDT"), System.DateTime) = New DateTime(1900, 1, 1) Then


这篇关于嗨,伙计们,你能帮我处理这个错误吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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