Call executable and get output

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Oleg Ogurok

    #1

    Call executable and get output

    Hi all,

    Could someone please give me an example of calling an external executable
    from VB and getting the output from it as a string?
    Thanks,

    -Oleg.


  • David

    #2
    Re: Call executable and get output

    "Oleg Ogurok" <oogurok@thecra mgroup.ihatespa mmers.ireallydo .com> wrote in message news:<20ea3$3f7 c9b9e$825ec943$ 12558@nf2.news-service.com>...[color=blue]
    > Hi all,
    >
    > Could someone please give me an example of calling an external executable
    > from VB and getting the output from it as a string?
    > Thanks,
    >
    > -Oleg.[/color]

    Piece of cake. This is what I do in my program:

    Dim obj as Object
    dim strReturn as String

    Set Obj = GetObject("", "Conv.Applicati on")
    'Now I pass in a predefined recordset and some other info from other recordsets
    'The ClientRS function in my external program returns a string which gets
    'assigned to strReturn

    strReturn = Obj.ClientRS(rs EXT, rs!Variable, rsEdit!Full)

    Comment

    Working...