ken82m Posted November 24, 2008 Posted November 24, 2008 (edited) I'm attempting convert a VB program. Can anyone tell me what I would use in place of a Sub...EndSub section? Here's a small one to give you an idea of the context: Private Sub Command1_Click() Dim sUsers As String If GetBrowserNames(Me.hWnd, _ "\\vbnetdev", _ "VBnet Add Users & Groups Demo", _ sUsers) Then Text1.Text = sUsers End If End Sub I'm thinking I just get rid of them and run them as part of the body of my script but maybe I'm wrong. Edited November 24, 2008 by ken82m "I believe that when we leave a place, part of it goes with us and part of us remains... Go anywhere, when it is quiet, and just listen.. After a while, you will hear the echoes of all our conversations, every thought and word we've exchanged.... Long after we are gone our voices will linger in these walls for as long as this place remains."
Richard Robertson Posted November 24, 2008 Posted November 24, 2008 A sub is basically a function that doesn't return a value. You can just use Func EndFunc.
ken82m Posted November 24, 2008 Author Posted November 24, 2008 ah ok, thanks "I believe that when we leave a place, part of it goes with us and part of us remains... Go anywhere, when it is quiet, and just listen.. After a while, you will hear the echoes of all our conversations, every thought and word we've exchanged.... Long after we are gone our voices will linger in these walls for as long as this place remains."
ken82m Posted November 24, 2008 Author Posted November 24, 2008 (edited) hmm well now it's just a big collection of functions lol Edited November 24, 2008 by ken82m "I believe that when we leave a place, part of it goes with us and part of us remains... Go anywhere, when it is quiet, and just listen.. After a while, you will hear the echoes of all our conversations, every thought and word we've exchanged.... Long after we are gone our voices will linger in these walls for as long as this place remains."
Richard Robertson Posted November 25, 2008 Posted November 25, 2008 That's how a lot of scripts end up.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now