Code Completion does not Show variables defined in another Unit/Script
Hi,
TC code completion does not show Variable/objects defined in another unit. example:
---------------------------------------------
Unit1
Set App = Aliases.AppName
Set MainScreen = App.Window_App
--------------------------------------------------------------------
'USEUNIT Unit1
Unit2
Call Unit1. '------ Press CTRL+Space will not show the variables in Unit1.
----------
Could anyone help in this regard ? I'm using VBScript.
Thanks,
I'm seeing the same behavior in VBScript. Declaring global variables in JScript seems to be working fine. It might have something to do with the way TestComplete handles the language.
I did try a little something though that SEEMS to correct this. Anything you want to be seen in the way of a global variable, preceed with the indicator "Public" Like soPublic App Public Window Set App = TestedApps.App Set Window = App.Window_App