|
-
Jan 29th, 2011, 05:03 AM
#1
Thread Starter
Lively Member
passing 2 variables with shell
I need to pass 2 variables in a shell command that opens another program I have written. I have successfly passed one variable but can't seem to get two to get thru. Here is my code.
******* In sending program ******
Private Sub Command3_Click()
Dim strDBPath As String
Dim strmail As String
strDBPath = Layout.Text67.Text
strmail = Text17.Text
Shell "C:\Program Files\Denali\Page Print.exe " & strDBPath & " " & strmail
End Sub
****** In receiving program *******
Private Sub Form_Load()
Dim strDBPath As String
Dim strmail As String
strDBPath = Command
Text68.Text = strDBPath
strmail = Command
Text34.Text = strmail
Printlayout.WindowState = 0
End Sub
Thank you for your help
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|