首页 > 编程 > .NET > 正文

把VBScript的函数迁移到C#.NET

2024-07-10 13:10:05
字体:
来源:转载
供稿:网友



vbscript 5.6 functions

c# code

abssystem.math.abs
arraynew object() { }
asc, ascb, ascwmicrosoft.visualbasic.strings.asc
atnsystem.math.atan
cboolsystem.convert.toboolean
cbytesystem.convert.tobyte
ccursystem.convert.todecimal
cdatesystem.convert.todatetime *
cdblsystem.convert.todouble
chr(char)
cintsystem.convert.toint32
clngsystem.convert.toint64
cossystem.math.cos
createobjectcreateobject or new instance in .net
cstrsystem.convert.tostring
datedatetime.today
dateaddmicrosoft.visualbasic.dateandtime.dateadd
datediffmicrosoft.visualbasic.dateandtime.datediff
datepartmicrosoft.visualbasic.dateandtime.datepart
dateserialmicrosoft.visualbasic.dateandtime.dateserial
datevaluemicrosoft.visualbasic.dateandtime.datevalue
daymicrosoft.visualbasic.dateandtime.day
eval(does not support)
expsystem.math.exp
filtermicrosoft.visualbasic.strings.filter
fixmicrosoft.visualbasic.conversion.fix
formatcurrencymicrosoft.visualbasic.strings.formatcurrency
formatdatetimemicrosoft.visualbasic.strings.formatdatetime
formatnumbermicrosoft.visualbasic.strings.formatnumber
getlocalesession.lcid
getobjectmicrosoft.visualbasic.interaction.getobject
getref(does not support)
hexmicrosoft.visualbasic.conversion.hex
hourmicrosoft.visualbasic.dateandtime.hour
inputboxmicrosoft.visualbasic.interaction.inputbox
instr, instrbmicrosoft.visualbasic.strings.instr
instrrevmicrosoft.visualbasic.strings.instrrev
intmicrosoft.visualbasic.conversion.int
isarraymicrosoft.visualbasic.information.isarray
isdatemicrosoft.visualbasic.information.isdate
isemptymicrosoft.visualbasic.information.isempty
isnullsystem.convert.isdbnull
isnumericmicrosoft.visualbasic.information.isnumeric
isobject*
joinmicrosoft.visualbasic.strings.join
lboundmicrosoft.visualbasic.information.lbound
lcasesystem.string.tolower
left, leftbsystem.string.substring(0,..)
len, lenbsystem.string.length
loadpicture*
logsystem.math.log
ltrimsystem.string.trimstart
mid, midbsystem.string.substring
minutemicrosoft.visualbasic.dateandtime.minute
monthmicrosoft.visualbasic.dateandtime.month
monthnamemicrosoft.visualbasic.dateandtime.monthname
msgboxmicrosoft.visualbasic.interaction.msgbox
nowsystem.datetime.now
octmicrosoft.visualbasic.conversion.oct
replacemicrosoft.visualbasic.strings.replace
rgbmicrosoft.visualbasic.information.rgb
right, rightbsystem.string.substring
rndmicrosoft.visualbasic.vbmath.rnd
roundsystem.math.round
rtrimsystem.string.trimend
scriptengine*
scriptenginebuildversion*
scriptenginemajorversion*
scriptengineminorversion*
secondmicrosoft.visualbasic.dateandtime.second
setlocale*
sgnsystem.math.sign
sinsystem.math.sin
spacenew string(' ',...)
splitmicrosoft.visualbasic.strings.split
sqrsystem.math.sqrt
strcompsystem.string.compare
stringnew string()
strreversemicrosoft.visualbasic.strings.strreverse
tansystem.math.tan
timemicrosoft.visualbasic.dateandtime.timeofday
timermicrosoft.visualbasic.dateandtime.timer
timeserialmicrosoft.visualbasic.dateandtime.timeserial
timevaluemicrosoft.visualbasic.dateandtime.timevalue
trimsystem.string.trim
typenamemicrosoft.visualbasic.information.typename
uboundmicrosoft.visualbasic.information.ubound
ucasesystem.string.toupper
vartypemicrosoft.visualbasic.information.vartype
weekdaymicrosoft.visualbasic.dateandtime.weekday
weekdaynamemicrosoft.visualbasic.dateandtime.weekdayname
yearmicrosoft.visualbasic.dateandtime.year

* don't support these functions.

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表