Jump to content

Help with some code (printing Variable o Msgbox)


Recommended Posts

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

@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 by FrancescoDiMuro

Click here to see my signature:

Spoiler

ALWAYS GOOD TO READ:

 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...