Below is an example of how to use a subroutine in a CATIA V5 macro:
1 2 3 4 5 6 7 8 9 10 11 | Sub CATMain() Dim strMessage as String CallMe strMessage MsgBox strMessage End Sub Sub Callme(ByRef strMsg As String) strMsg = "Hello" End Sub |
Below is an example of how to use a subroutine in a CATIA V5 macro:
1 2 3 4 5 6 7 8 9 10 11 | Sub CATMain() Dim strMessage as String CallMe strMessage MsgBox strMessage End Sub Sub Callme(ByRef strMsg As String) strMsg = "Hello" End Sub |