Help, Telling if a %var is Global or Local - 20/09/06 10:07 AM
This may sound odd...but I need my script to KNOW if a var passed to it is global (/set) or local (/var)?
I suppose i could make an alias called /set and have it write to an ini , the variable name as ITEM and Global as VALUE, but then i would need to have an alias for unset and yada yada. (the same for /var too)
But CMON! There has to be a way! $var() searches both var types,
The reason i need to do this is because i am writting an alias called VADD which adds the string/data to the end of the variable instead of overwritting it, and if i pass it a local var, i dont want to /set it, i want to /var %var = %var $+ %newdata.
Any ideas. i really hope i overlooked something and this is more simple than i think it is.
I suppose i could make an alias called /set and have it write to an ini , the variable name as ITEM and Global as VALUE, but then i would need to have an alias for unset and yada yada. (the same for /var too)
But CMON! There has to be a way! $var() searches both var types,
The reason i need to do this is because i am writting an alias called VADD which adds the string/data to the end of the variable instead of overwritting it, and if i pass it a local var, i dont want to /set it, i want to /var %var = %var $+ %newdata.
Any ideas. i really hope i overlooked something and this is more simple than i think it is.