0 pts.
 Return a floating pt value to a script variable
I have a visual basic program that generates a single floating point number as its output. I would like to modify the program to stuff this value into a variable than can be used in a VB script. The idea is that the script would run the visual basic program and then use the value generated by the program throughout the remainder of the script. I've done this in with Fortran under Unix and other operating systems, but haven't a clue of how to do it in Visual Basic and Windows.

Software/Hardware used:
ASKED: July 19, 2005  10:47 AM
UPDATED: July 19, 2005  9:38 PM

Answer Wiki:
If your program doecn't have a user interface and is merely an executable that you launch, you could rewrite it as an ActiveX DLL project. Call a public function that would run whatever code you are using then return your variable which you could use in a VB Script, ASP page, etc. <%'Script page example: myObject = Create.Object("myProject.clsMyClass") myVariable = myObject.myFunction %> myProject Function Example: Public Function myFunction() as Float Dim anyVariable as Float 'Do stuff here myFunction = anyVariable End Function Hope this helps!
Last Wiki Answer Submitted:  July 19, 2005  9:38 pm  by  Jtunes   0 pts.
All Answer Wiki Contributors:  Jtunes   0 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _