VBScript函数与VB函数 [英] VBScript functions versus VB functions

查看:68
本文介绍了VBScript函数与VB函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我需要一个很好的VB帮助/教程,请(我喜欢* .chm帮助文件)。


另外::VBScript中的now()获取当前时间,

VB的对应函数是什么?


谢谢:)

Hello,
I need a good help/tutorial for VB, please (I preffer *.chm help file).

Also :
for the function : now() in VBScript for getting the current time,
what is the counterpart function of VB ?

Thanks :)

推荐答案

你好,


" Mr。 X" < a@b.com> schrieb:
Hello,

"Mr. x" <a@b.com> schrieb:
我需要一个很好的VB帮助/教程,请(我喜欢* .chm
帮助文件)。

另外:
for函数:now()在VBScript中获取当前时间,
VB的对应函数是什么?
I need a good help/tutorial for VB, please (I preffer *.chm
help file).

Also :
for the function : now() in VBScript for getting the current time,
what is the counterpart function of VB ?




大多数函数在VBScript,VB中类似经典和VB.NET。你是参考VB.NET或VB Classic的
吗?


-

Herfried K. Wagner

MVP·VB Classic,VB.NET
http://www.mvps .org / dotnet


您好,

我正在使用ASPX并将代码放入ASPX中的vb中,以及* .ASMX

(网络服务),

所以我想我正在寻找VB.NET帮助。


谢谢: )


" Herfried K. Wagner [MVP]" <喜******* @ m.activevb.de>在消息中写道

新闻:OO ************** @ tk2msftngp13.phx.gbl ...
Hello,
I am using the ASPX and put code in vb in ASPX, and also in *.ASMX
(Web-Services),
So I think I am looking for VB.NET help.

Thanks :)

"Herfried K. Wagner [MVP]" <hi*******@m.activevb.de> wrote in message
news:OO**************@tk2msftngp13.phx.gbl...
你好,
先生。 X" < a@b.com> schrieb:
Hello,

"Mr. x" <a@b.com> schrieb:
我需要一个很好的VB帮助/教程,请(我喜欢* .chm
帮助文件)。

另外:
for函数:now()在VBScript中获取当前时间,
VB的对应函数是什么?
I need a good help/tutorial for VB, please (I preffer *.chm
help file).

Also :
for the function : now() in VBScript for getting the current time,
what is the counterpart function of VB ?



大多数函数在VBScript,VB Classic和VB中类似。净。你是在谈论VB.NET还是VB Classic?

- Herfried K. Wagner
MVP·VB Classic,VB.NET
< a rel =nofollowhref =http://www.mvps.org/dotnettarget =_ blank> http://www.mvps.org/dotnet



实际上,很多VBScript& VB 6.0函数现在有了完成函数用来完成的相同任务的方法。虽然许多VBScript& VB 6.0

函数仍然可以使用,它们只是调用新的.NET

方法[即msgbox()调用messageBox.show()]。


所以,虽然你可以使用好老来逃避在.NET中,你可以发现你的应用程序表现得更好,如果你不是。


顺便说一下,.NET的方法来获取当前的时间是

delcare一个新的DateTime对象并调用它的相应方法:


Dim y As New Date()

response.write(y.Now())


" Herfried K. Wagner [MVP]" <喜******* @ m.activevb.de>在消息中写道

新闻:OO ************** @ tk2msftngp13.phx.gbl ...
Actually, many VBScript & VB 6.0 functions now have methods to accomplish
the same task the function used to accomplish. While many VBScript & VB 6.0
functions can still be used, they are just, in turn, calling the new .NET
method [i.e. msgbox() calls messageBox.show()].

So, while you can get away with using the "good old" functions in .NET, you
may find that you app performs better if you don''t.

By the way, the .NET approach to getting the current time would be to
delcare a new DateTime object and call its appropriate method like this:

Dim y As New Date()
response.write(y.Now())

"Herfried K. Wagner [MVP]" <hi*******@m.activevb.de> wrote in message
news:OO**************@tk2msftngp13.phx.gbl...
你好,
先生。 X" < a@b.com> schrieb:
Hello,

"Mr. x" <a@b.com> schrieb:
我需要一个很好的VB帮助/教程,请(我喜欢* .chm
帮助文件)。

另外:
for函数:now()在VBScript中获取当前时间,
VB的对应函数是什么?
I need a good help/tutorial for VB, please (I preffer *.chm
help file).

Also :
for the function : now() in VBScript for getting the current time,
what is the counterpart function of VB ?



大多数函数在VBScript,VB Classic和VB中类似。净。你是在谈论VB.NET还是VB Classic?

- Herfried K. Wagner
MVP·VB Classic,VB.NET
< a rel =nofollowhref =http://www.mvps.org/dotnettarget =_ blank> http://www.mvps.org/dotnet



这篇关于VBScript函数与VB函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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