MTSkull Posted July 11, 2003 Posted July 11, 2003 New to Dot Net... How do I use the command window? >?testFunc() Public Function testFunc() As String testFunc = "Test" End Function Thanks Quote "Beer is proof that God loves us and wants us to be happy." -Benjamin Franklin
Leaders dynamic_sysop Posted July 11, 2003 Leaders Posted July 11, 2003 Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click MessageBox.Show(testFunc("Test")) End Sub Public Function testFunc(ByVal strString As String) As String Return strString '/// return the value. End Function or using your original function : Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click MsgBox(testFunc) '// will show Test. End Sub Public Function testFunc() As String testFunc = "Test" End Function Quote
AndreRyan Posted July 12, 2003 Posted July 12, 2003 Does "command window" mean Message Box or Console Application If you mean console: Public Shared Sub Main() Console.Writeline(TestFunc) Console.Read End Sub Also use Return "Test" not TestFunc = Quote .Net allows software to be written for any version of Windows and not break like Unmanaged applications unless using Unmanaged procedures like APIs. If your program uses large amounts of memory but releases it when something else needs it, then what's the problem?
*Gurus* divil Posted July 12, 2003 *Gurus* Posted July 12, 2003 He's asking how to use the visual studio command window. You use it to run functions and see their results at runtime. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
*Experts* jfackler Posted July 12, 2003 *Experts* Posted July 12, 2003 Working in VS, turn on Dynamic Help, open the Command Window and select Command Window in the Dynamic Help....there are pointers there. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.