Animare Posted March 31, 2021 Share Posted March 31, 2021 Hi all, I'm trying to print a Variable created based on data from a field from an application to a message box, have looked up some examples and am following but am not sure what I'm missing. Hope the variable part works as well! Global $Texstore = ControlGetText("Production 3.10.18","UniApplication","Edit12") MsgBox(0,"","$Texstore") Any help appreciated! Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted March 31, 2021 Share Posted March 31, 2021 (edited) @Animare Remove double quotes around the variable name, since in this way it is interpreted literally, and not as a variable. If you need/want to use the variable in such way, then you need to add to your script the option Opt("ExpandVarStrings", 1) Edited March 31, 2021 by FrancescoDiMuro JackER4565 1 Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette Link to comment Share on other sites More sharing options...
Animare Posted March 31, 2021 Author Share Posted March 31, 2021 Awesome, thank you for the info! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now