|
-
September 4th, 2001, 02:38 AM
#1
Create sub main in a module
My GUI had a button called cmdExport in Form1. I want to create a sub main that refer to this button.
In a new module, I wrote :
Sub Main()
Form1.cmdExport
End Sub
However, when i try to make an .exe with Sub Main as the start up object, there's an error which refer to .cmdExport in Sub Main. The error message is 'Invalid use of property'.
Can someone please help? Prompt answer will be much appreciated.
Thank you.
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
|