The way I have it is obviously the wrong way to do it, but how do I get a variable stored in an object into another variable, and/or display it in a dialog? Below I have posted the code that is wrong and does not work. I figure that it will clear up anything about my question that is hard to understand.
script anItem
	property MEM1 : text
	
	on setMEM1 to var
		set MEM1 to var as text
		
		return ""
	end setMEM1
	
	on getMem1 to Xvar
		
		return MEM1
	end getMem1
	
	
end script
on run
	
	tell anItem to setMEM1 to "debug"
	set theNum to 5
	set aVar to (tell anItem to getMem1 to "")
	display dialog aVar as text
	
end run