VB.Command()在.NET中做什么 [英] What does VB.Command() does in .NET

查看:119
本文介绍了VB.Command()在.NET中做什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我得到了一个将VB应用程序转换为VB.NET类型的项目.它运行顺利,解决了与DLL相关的某些小问题后,没有任何错误.

我的问题是我找到了一条已注释以接收进程ID的命令.我完全不确定.该命令如下所示.

Hi all, I was given a project to covert a VB application to VB.NET type. It went on well and there was no error after solving certain minor issues related to DLL.

My question is I found a command that was commented to receive the process id. I was totally unsure of this. The command goes like this.

string strProcessId = VB.Command()



该字符串原应收到process_ID,但从未收到,并且始终显示为空字符串.

我现在不为这个过程感到烦恼.
我只想知道命令VB.Command()返回什么?



The string was expected to receive a process_ID, but it never does and always displayed as an empty string.

I am not bothered about the process now.
All I wanted to know is what does the command VB.Command() returns?

推荐答案

据Microsoft称:

返回用于启动Microsoft Visual Basic或使用Visual Basic开发的可执行程序的命令行的自变量部分."

如果您启动应用程序:
YourApp.exe 12345
它返回"12345"

欢呼声
According to Microsoft :

"Returns the argument portion of the command line used to launch Microsoft Visual Basic or an executable program developed with Visual Basic."

If you launch your app :
YourApp.exe 12345
It returns "12345"

Cheers


这完全取决于VB是什么对象?

AFAIK,VB不是标准对象,我们可以告诉您看这条线.您需要先查看并找到有关VB类型的信息,然后一个简单的Google可以告诉您有关该命令的信息.
It all depends on what object is VB?

AFAIK, VB is not a standard object that we can tell you looking at the line. You need to see and find about VB type first and then a simple Google can tell you about the command.


嗨Estys,
问题在于该命令在任何示例项目中始终返回NULL.您能再介绍一下您的解释吗?

我的示例应用程序在.NET中是这样的

Hi Estys,
The problem is the command always returns NULL in any sample project. Can you brief your explanation more.

My sample app goes like this in .NET

messagebox.show(vb.command())


结果是空的消息框

我在VB中的示例应用是


the result is empty messagebox

My sample app in VB is

msgbox(Command())


这也是一个空的消息框.


which is also an empty messagebox.


这篇关于VB.Command()在.NET中做什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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