Hi everyone ,I was wondering wether i could hide variables outside a UDF,like this
;This is the UDF named myudf.au3
Global $myvariable1 = "sample1", $myvariable2
;these variasbles are visible and accessed when the udf is included
Localize $myvariable3 = "sample2"
;i want this variable to be invisible to the mainscript that includes the UDF
;ie it should be visible here but not in the script that uses it
Dummy()
Func Dummy()
Msgbox(default,"variables",$myvariable1 &" " & $myvariable3)
;This should run without an error
EndFunc ;==>Dummy
;including the previous UDF
#include "myudf.au3"
Msgbox(default,"first variable",$myvariable1 &" This was a variable defined in the UDF") ; this successfully shows a msgbox
Msgbox(default,"special variable",$myvariable3) ; this should show an error showing the variable $myvariable3 doesnt exist
Is there someway to hide variables in the mainscript while using them in the UDF
Thankyou