|
-
Nov 11th, 2003, 07:39 PM
#1
Thread Starter
New Member
Passing filename to form
On the welcome page I have a button to open the file to read.
With dlgOpenDialog
.filter = "text(*.txt) |*.txt"
.InitialDirectory = Application.StartupPath
.ShowDialog()
strAddress = .Filename
End With
I want to pass the file name/location to another form where I will read in the comma delemited data into an array.
I have the new form as
Public objAddressForm as New String and the objAddressForm.show
The problem is when I try to pass strAddress it says "Too many arguments to "Public Sub Show()"
How can I get this to work? I don't know what I am doing wrong.
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
|