Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Please Guide how to get the value of path inside the function call 
Here is my code
VB
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
Posted
Comments
Sergey Alexandrovich Kryukov 20-Jan-15 0:50am    
Huh?
—SA
Bensingh 20-Jan-15 1:18am    
in that instead of c:\temp\zip its just taking tha value as & path &

1 solution

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
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900