OK, what about output.
I want my program operate like function.
some data in and program returns data that can be read.
Thnx!
Ermin
Printable View
OK, what about output.
I want my program operate like function.
some data in and program returns data that can be read.
Thnx!
Ermin
An easier way is to use the InStr function. For example, if Query is what you're looking for in the command line parameters, use this:
Code:Function IsInCommand(Query as String) As Boolean
Dim c As String, q As String
c = LCase$(Command)
q = LCase$(Query)
IsInCommand = False
If InStr(1,c,q)<>0 Then IsInCommand = True
End Function
You can't use an exe to return a value like in a function, but there are some workarounds, for instance, you can let your program do some processing and write something to a textfile, and let the calling program read that textfile (easiest solution).
You can also use shared memory or send messages to the calling program (the hard way...)
Please be more specific about what you want, maybe you can make an ActiveX exe to do what you want.
Use Command$.
I want to start an exe file from a html page with a lot of different buttons on it.
Is it possible to start the same .exe, but with a different form as the startup.
I know that I can use Sub Main(), but i dont know how to.
Is it better to create a lot of ActiveX Exe?? My program is getting bigger and bigger...
Thanks..