Jump to content

Assign from Global


Deye
 Share

Recommended Posts

Hi,

@ Using different names for each  Assign 

Example:  Assign("Check_" & $icount, $aArr)

what can be a  way to use Assign so its from  Global scope so I can use eval from functions

Thanks

Deye

Edited by Deye
Link to comment
Share on other sites

@Deye
Something like this:

Assign("strVariable", "Some text", $ASSIGN_FORCEGLOBAL)

_EvalData()

Func _EvalData()
    Local $strEvalString = Eval("strVariable")
    MsgBox($MB_ICONINFORMATION, "", "$strVariable = " & $strEvalString)
EndFunc

:)

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...