SAHMED
9 years agoOccasional Contributor
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.Wind...
- 9 years ago
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