Call a proceedure in another procedure

Discussion in 'AutoCAD' started by johnsonm, Sep 2, 2004.

  1. johnsonm

    johnsonm Guest

    I am making a batch program to open a bunch of files one at a time and then run another procedure. How do I call that procedure?

    What I'd like to do is,

    Run sub "A" which tells sub "B"(batch routine) to run sub "C"

    Any suggestions?
     
    johnsonm, Sep 2, 2004
    #1
  2. johnsonm

    Ed Jobe Guest

    AcadApplication.RunMacro

    --
    ----
    Ed
    ----
    then run another procedure. How do I call that procedure?
     
    Ed Jobe, Sep 2, 2004
    #2
  3. johnsonm

    tj Guest

    This is a pretty lame example but this may be what you're looking for.

    tjr
    **********************************************************************
    Option Explicit

    Public Sub SubA()
    Dim text As String: text = "Test"
    SubB (text)
    End Sub

    Public Sub SubB(msg As String)
    Dim I As Integer
    For I = 1 To 5
    SubC (msg & Chr(32) & I)
    Next
    End Sub

    Public Sub SubC(msg As String)
    MsgBox msg
    End Sub

    **********************************************************************

    then run another procedure. How do I call that procedure?
     
    tj, Sep 3, 2004
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.