如何在函数调用中传递变量值 [英] how to passing the variable values in function call

查看:132
本文介绍了如何在函数调用中传递变量值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Please Guide how to get the value of path inside the function call 
Here is my code

Dim path As String
path = Form_FrmDossiers.Get_ScanPath(True, "S") + "\Zip"

  MsgBox path

  Call WinRarIt("C:\00Temp\00 WinRar", "*.*", " & path & ", "Test.ZIP")
  
  'Call WinRarIt("C:\", "*.*", "C:\", "Test.ZIP")
  MsgBox "Find the Zip files " & path







Where I have stuck please Guide

推荐答案

我认为您正在尝试创建一个函数,只有函数可以在vb.net中返回一个值,并且调用一个过程将不会返回任何值。



所以我建议创建一个返回值的函数,这些是下面链接中的简单教程:

http://www.homeandlearn.co.uk/NET/nets9p5.html [ ^ ]

,这可以帮到你。



谢谢
I think that you are Trying to create a Function , Only Function can return a value in vb.net , and calling a procedure will not return any .

So I suggest to create a Function that Return value , and these are vey simple tutorial in below link:
http://www.homeandlearn.co.uk/NET/nets9p5.html[^]
and may this help you .

Thanks


这篇关于如何在函数调用中传递变量值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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