Passing a value to a Sub or Function in an App
Hello,
Just calling an App function/sub that requires no arguments from another module seems straight forward. eg.
Is there a better way to interact with the Circle App from another project?
Thanks
Just calling an App function/sub that requires no arguments from another module seems straight forward. eg.
With Automate.ScriptingCommands.PlayMacro(Circles)
.MacroFile = "Circles>CirclesApp.vb"
.MacroName = "SetControls"
.Run(Nothing)
End With
However, how to or is it possible to call a function/sub in an App that requires a value? I'm inst rested specifically in the LoadFromFile sub from Circle App.Is there a better way to interact with the Circle App from another project?
Thanks
Public Sub LoadFromFile(ByVal FileName As String) Dim MySettings As MediaCy.IQL.Application.McSettings = New MediaCy.IQL.Application.McSettings(ThisApplication) MySettings.Load(FileName) Load(MySettings) End Sub
0
Answers
-
Michael,
The recorded macro don't have input parameters, but you can create your own subs, like LoadFromFile in your post, and pass parameters. You can also create global variables and use them inside the subs in that module.
Regarding Circles app: it's a self-contained app and is not supposed to be called from other projects. You can copy code to your own project, extend it with other subs and functions and do what you need.
Yuri
0
Categories
- All Categories
- 961 Image-Pro v9 and higher
- 9 Image-Pro FAQs
- 18 Image-Pro Download & Install
- 448 Image-Pro General Discussions
- 486 Image-Pro Automation (Macros, Apps, Reports)
- 20 AutoQuant Deconvolution
- 2 AutoQuant Download & Install
- 18 AutoQuant General Discussions
- 195 Image-Pro Plus v7 and lower
- 3 Image-Pro Plus Download & Install
- 106 Image-Pro Plus General Discussions
- 86 Image-Pro Plus Automation with Macros
- 19 Legacy Products
- 16 Image-Pro Premier 3D General Discussions
- 26 Image-Pro Insight General Discussions