如何将值从子脚本传递到vbscript中的父脚本? [英] how pass values from child script to it's paraent script in vbscript?

查看:143
本文介绍了如何将值从子脚本传递到vbscript中的父脚本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了2个vbscript,我从"a"调用了"b" vbscript,我想从脚本"b"返回一些字符串值到脚本"a",我该怎么做?
我正在使用vb脚本

i created 2 vbscript i call "b" vbscript from "a" i want to return some string value from script "b" to script "a" how can i do it?
i m using vb script

推荐答案

VBScript中没有子脚本或父脚本的概念.而且,所谓的不是脚本而是函数.

我什至不知道该如何帮忙.您不了解非常基本的编程概念.您所能做的就是从一开始就学习.

您可以做出的最佳决定是放弃VBScript,使其成为专有和非标准的,并且永远不要使用它. JavaScript可以在可以使用VBScript的任何地方使用,但是它是标准化的,可以在VBScript仅限于Microsoft产品的任何地方使用.

http://en.wikipedia.org/wiki/VBScript [ http://en.wikipedia.org/wiki/JavaScript [ http://en.wikipedia.org/wiki/ECMAScript [ http://en.wikipedia.org/wiki/Windows_PowerShell [ http://en.wikipedia.org/wiki/Function_%28computer_science%29 [ ^ ],
http://en.wikipedia.org/wiki/Scripting_language [ http://en.wikipedia.org/wiki/Programming [
There are no a concept of child or parent scripts in VBScript. Moreover, what is called are not scripts but functions.

I don''t even know how to help. You have no idea of a very basic programming concept. All you can do is starting to learn from the very beginning.

Best decision you can make is to abandon VBScript as proprietary and non-standard and never use it. JavaScript can be used everywhere where VBScript can be used, but it is standardized and can be used anywhere while VBScript is pretty much limited to Microsoft products.

http://en.wikipedia.org/wiki/VBScript[^],
http://en.wikipedia.org/wiki/JavaScript[^],
http://en.wikipedia.org/wiki/ECMAScript[^],
http://en.wikipedia.org/wiki/Windows_PowerShell[^],
http://en.wikipedia.org/wiki/Function_%28computer_science%29[^],
http://en.wikipedia.org/wiki/Scripting_language[^],
http://en.wikipedia.org/wiki/Programming[^].

—SA


这篇关于如何将值从子脚本传递到vbscript中的父脚本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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